close #1753 Fixed: Incorrect next number for a new document in the module
This commit is contained in:
parent
c50c8acd75
commit
5fdaf8f8f5
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user