Set invoice type for renewal invoices
This commit is contained in:
parent
298bde6603
commit
2d15c43251
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue