mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for next_send_date when updating a recurring invoice
This commit is contained in:
parent
0f70579b72
commit
564e1aefe1
@ -369,11 +369,10 @@ class RecurringInvoice extends BaseModel
|
||||
|
||||
$data = [];
|
||||
|
||||
if(!$this->next_send_date)
|
||||
return $data;
|
||||
|
||||
$next_send_date = Carbon::parse($this->next_send_date)->copy();
|
||||
|
||||
if(!$next_send_date)
|
||||
return $data;
|
||||
|
||||
for ($x=0; $x<$iterations; $x++) {
|
||||
// we don't add the days... we calc the day of the month!!
|
||||
|
Loading…
Reference in New Issue
Block a user