mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-22 15:40:55 -04:00
Fix counter when using quote number for invoice
This commit is contained in:
parent
8e6cfe706f
commit
c9ba38e06c
@ -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…
x
Reference in New Issue
Block a user