Fix counter when using quote number for invoice
This commit is contained in:
parent
8e6cfe706f
commit
c9ba38e06c
1 changed files with 4 additions and 0 deletions
|
|
@ -861,6 +861,10 @@ class InvoiceRepository extends BaseRepository
|
|||
->whereInvoiceNumber($invoiceNumber)
|
||||
->first()) {
|
||||
$invoiceNumber = false;
|
||||
} else {
|
||||
// since we aren't using the counter we need to offset it by one
|
||||
$account->invoice_number_counter -= 1;
|
||||
$account->save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue