mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fix for recurring invoice null next_send_date
This commit is contained in:
parent
0650f066e2
commit
02e535b5a1
@ -366,10 +366,14 @@ class RecurringInvoice extends BaseModel
|
||||
if ($this->remaining_cycles == -1) {
|
||||
$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…
Reference in New Issue
Block a user