mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:54:29 -04:00
Fix for recurring invoice null next_send_date
This commit is contained in:
parent
0650f066e2
commit
02e535b5a1
@ -367,9 +367,13 @@ class RecurringInvoice extends BaseModel
|
||||
$iterations = 10;
|
||||
}
|
||||
|
||||
$data = [];
|
||||
|
||||
if(!$this->next_send_date)
|
||||
return $data;
|
||||
|
||||
$next_send_date = Carbon::parse($this->next_send_date)->copy();
|
||||
|
||||
$data = [];
|
||||
|
||||
for ($x=0; $x<$iterations; $x++) {
|
||||
// we don't add the days... we calc the day of the month!!
|
||||
|
Loading…
x
Reference in New Issue
Block a user