mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for next_send_date when updating a recurring invoice
This commit is contained in:
parent
564e1aefe1
commit
ba8fcb0de0
@ -369,11 +369,11 @@ class RecurringInvoice extends BaseModel
|
|||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
$next_send_date = Carbon::parse($this->next_send_date)->copy();
|
if(!Carbon::parse($this->next_send_date))
|
||||||
|
|
||||||
if(!$next_send_date)
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|
||||||
|
$next_send_date = Carbon::parse($this->next_send_date)->copy();
|
||||||
|
|
||||||
for ($x=0; $x<$iterations; $x++) {
|
for ($x=0; $x<$iterations; $x++) {
|
||||||
// we don't add the days... we calc the day of the month!!
|
// we don't add the days... we calc the day of the month!!
|
||||||
$next_due_date = $this->calculateDueDate($next_send_date->copy()->format('Y-m-d'));
|
$next_due_date = $this->calculateDueDate($next_send_date->copy()->format('Y-m-d'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user