diff --git a/app/Models/RecurringInvoice.php b/app/Models/RecurringInvoice.php index 7d28949e2f2a..c6e3a03199bf 100644 --- a/app/Models/RecurringInvoice.php +++ b/app/Models/RecurringInvoice.php @@ -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!!