1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Minor fixes for recurring invoices

This commit is contained in:
David Bomba 2022-06-16 08:04:20 +10:00
parent 4606215ba2
commit 2c5e6a4893

View File

@ -154,6 +154,7 @@ class NinjaPlanController extends Controller
$recurring_invoice->auto_bill_enabled = $this->setAutoBillFlag($recurring_invoice->auto_bill);
$recurring_invoice->due_date_days = 'terms';
$recurring_invoice->next_send_date = now()->addDays(14)->format('Y-m-d');
$recurring_invoice->next_send_date_client = now()->addDays(14)->format('Y-m-d');
$recurring_invoice->save();
$r = $recurring_invoice->calc()->getRecurringInvoice();