Merge pull request #5096 from gauravjain028/patch-1
Correct use of Order number length setting.
This commit is contained in:
commit
93d485275d
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue