Sfoglia il codice sorgente

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

dev
parent
commit
a3498b06b0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      common/models/Document.php

+ 1
- 1
common/models/Document.php Vedi File

@@ -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;

Loading…
Annulla
Salva