Pārlūkot izejas kodu

[backend] Référence documents : correction bug génération référence

dev
Guillaume Bourgeois pirms 4 gadiem
vecāks
revīzija
a3498b06b0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      common/models/Document.php

+ 1
- 1
common/models/Document.php Parādīt failu

@@ -193,7 +193,7 @@ class Document extends ActiveRecordCommon
}

$prefix = Producer::getConfig('document_' . $classLower . '_prefix');
$oneDocumentExist = $class::searchOne([], ['orderby' => 'reference DESC']);
$oneDocumentExist = $class::searchOne(['status' => Document::STATUS_VALID] , ['orderby' => 'reference DESC']);

if ($oneDocumentExist) {
$reference = $oneDocumentExist->reference;

Notiek ielāde…
Atcelt
Saglabāt