Pārlūkot izejas kodu

Merge branch 'hotfix/hotfix_1381'

master
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
b049752e95
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      common/logic/Document/Document/Service/DocumentReferenceGenerator.php

+ 2
- 2
common/logic/Document/Document/Service/DocumentReferenceGenerator.php Parādīt failu

@@ -32,7 +32,7 @@ class DocumentReferenceGenerator extends AbstractGenerator
}

$prefix = $this->producerSolver->getConfig('document_' . $classLower . '_prefix');
$oneDocumentExist = $classComplete::searchOne(['status' => Document::STATUS_VALID], ['orderby' => 'reference DESC']);
$oneDocumentExist = $classComplete::searchOne(['status' => Document::STATUS_VALID], ['orderby' => 'reference_number DESC']);

if ($oneDocumentExist) {
$referenceNumberDocumentExist = $oneDocumentExist->reference_number;
@@ -69,7 +69,7 @@ class DocumentReferenceGenerator extends AbstractGenerator

public function strPadReference(int $referenceNumber): string
{
return str_pad($referenceNumber, 6, '0', STR_PAD_LEFT);
return str_pad($referenceNumber, 5, '0', STR_PAD_LEFT);
}

private function getMainName(User $user): string

Notiek ielāde…
Atcelt
Saglabāt