mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for invoice counter
This commit is contained in:
parent
2f275a846d
commit
b697e2aafa
@ -52,9 +52,11 @@ trait GeneratesNumbers
|
||||
$this->client_number_counter += $counterOffset - 1;
|
||||
$this->save();
|
||||
}
|
||||
} elseif ($entity->isType(INVOICE_TYPE_QUOTE) && !$this->share_counter) {
|
||||
} elseif ($entity->isType(INVOICE_TYPE_QUOTE)) {
|
||||
if ( ! $this->share_counter) {
|
||||
$this->quote_number_counter += $counterOffset - 1;
|
||||
$this->save();
|
||||
}
|
||||
} else {
|
||||
$this->invoice_number_counter += $counterOffset - 1;
|
||||
$this->save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user