fix #171 - Quote to invoice should change the Prefix and the number

This commit is contained in:
Hillel Coren 2014-10-19 19:44:20 +03:00
parent 8410ad9dc9
commit ad8d5df8d5

View File

@ -367,7 +367,7 @@ class InvoiceRepository
$clone = Invoice::createNew($invoice); $clone = Invoice::createNew($invoice);
$clone->balance = $invoice->amount; $clone->balance = $invoice->amount;
$clone->invoice_number = $invoice->account->getNextInvoiceNumber($invoice->is_quote); $clone->invoice_number = $invoice->account->getNextInvoiceNumber();
foreach ([ foreach ([
'client_id', 'client_id',