close #1753 Fixed: Incorrect next number for a new document in the module

This commit is contained in:
Cüneyt Şentürk 2021-01-13 22:30:19 +03:00
parent c50c8acd75
commit 5fdaf8f8f5

View File

@ -553,7 +553,7 @@ abstract class DocumentForm extends Base
$next = $type; $next = $type;
if ($alias = config('type.' . $type . '.alias')) { if ($alias = config('type.' . $type . '.alias')) {
$next = $alias . '.' . $type; $next = $alias . '.' . str_replace('-', '_', $type);
} }
$document_number = $this->getNextDocumentNumber($next); $document_number = $this->getNextDocumentNumber($next);