mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix counter when using quote number for invoice
This commit is contained in:
parent
4db3445ca1
commit
676560c003
@ -861,6 +861,10 @@ class InvoiceRepository extends BaseRepository
|
|||||||
->whereInvoiceNumber($invoiceNumber)
|
->whereInvoiceNumber($invoiceNumber)
|
||||||
->first()) {
|
->first()) {
|
||||||
$invoiceNumber = false;
|
$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