From 406d6b8d087d70be06ca22e19fd85bfee71726be Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 9 Jan 2022 15:59:14 +1100 Subject: [PATCH] Fixes for endless reminders --- app/Jobs/Util/ReminderJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Util/ReminderJob.php b/app/Jobs/Util/ReminderJob.php index 947d12cccf..93c61e7482 100644 --- a/app/Jobs/Util/ReminderJob.php +++ b/app/Jobs/Util/ReminderJob.php @@ -81,7 +81,7 @@ class ReminderJob implements ShouldQueue $invoice = $this->calcLateFee($invoice, $reminder_template); //check if this reminder needs to be emailed - if(in_array($reminder_template, ['reminder1','reminder2','reminder3']) && $invoice->client->getSetting("enable_".$reminder_template)) + if(in_array($reminder_template, ['reminder1','reminder2','reminder3','reminder_endless']) && $invoice->client->getSetting("enable_".$reminder_template)) { $invoice->invitations->each(function ($invitation) use ($invoice, $reminder_template) { EmailEntity::dispatch($invitation, $invitation->company, $reminder_template);