mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-10 05:04:35 -04:00
Fixes for generated numbers
This commit is contained in:
parent
0912e39759
commit
c388a1b3e7
@ -419,7 +419,7 @@ trait GeneratesCounter
|
|||||||
$check_counter = 1;
|
$check_counter = 1;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
$number = $this->getFormattedEntityNumber($entity, $counter, $padding, $pattern);
|
$number = $this->getFormattedEntityNumber($entity, $counter, $padding, $pattern, $prefix);
|
||||||
|
|
||||||
$check = $class::where('company_id', $entity->company_id)->where('number', $number)->withTrashed()->exists();
|
$check = $class::where('company_id', $entity->company_id)->where('number', $number)->withTrashed()->exists();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user