浏览代码

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

refactoring
父节点
当前提交
a3498b06b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      common/models/Document.php

+ 1
- 1
common/models/Document.php 查看文件

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

正在加载...
取消
保存