From af502e9757b9c91c57d26f06d9c3119c6f7b23f9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 17 Jun 2023 12:13:41 +1000 Subject: [PATCH] Add notifications for send emails for recurring --- app/Jobs/Cron/AutoBill.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Jobs/Cron/AutoBill.php b/app/Jobs/Cron/AutoBill.php index 824f9463f2..5376571d7c 100644 --- a/app/Jobs/Cron/AutoBill.php +++ b/app/Jobs/Cron/AutoBill.php @@ -67,6 +67,9 @@ class AutoBill implements ShouldQueue if ($invitation->contact && ! $invitation->contact->trashed() && strlen($invitation->contact->email) >= 1 && $invoice->client->getSetting('auto_email_invoice')) { try { EmailEntity::dispatch($invitation, $invoice->company)->delay(rand(1, 2)); + + $invoice->entityEmailEvent($invitation, 'invoice', 'email_template_invoice'); + } catch (\Exception $e) { nlog($e->getMessage()); }