mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Set invoice type for renewal invoices
This commit is contained in:
parent
298bde6603
commit
2d15c43251
@ -279,6 +279,7 @@ class AccountRepository
|
||||
$invoice->invoice_number = $account->getNextInvoiceNumber($invoice);
|
||||
$invoice->invoice_date = $clientAccount->getRenewalDate();
|
||||
$invoice->amount = $invoice->balance = $plan_cost - $credit;
|
||||
$invoice->invoice_type_id = INVOICE_TYPE_STANDARD;
|
||||
$invoice->save();
|
||||
|
||||
if ($credit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user