Merge pull request #5096 from gauravjain028/patch-1

Correct use of Order number length setting.
This commit is contained in:
Glenn Hermans 2021-08-19 09:10:54 +02:00 committed by GitHub
commit 93d485275d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ class Sequencer implements SequencerContract
if ($this->length && ($this->prefix || $this->suffix)) {
$number = ($this->prefix) . sprintf(
"%0{$this->length}d",
0
) . ($this->lastId + 1) . ($this->suffix);
($this->lastId + 1)
) . ($this->suffix);
} else {
$number = $this->lastId + 1;
}