Fix counter when using quote number for invoice

This commit is contained in:
Hillel Coren 2017-11-26 11:51:20 +02:00
parent 4db3445ca1
commit 676560c003

View File

@ -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();
}
}