From aedd9710c165fb7254e848bb8efdfe91c811e232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 22 Mar 2023 17:34:23 +0300 Subject: [PATCH] close #2626 Fixed: Recurring Invoice mark as "Draft" instead of "Sent" ( #8669hjyqw ) --- app/Listeners/Document/SendDocumentRecurringNotification.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Listeners/Document/SendDocumentRecurringNotification.php b/app/Listeners/Document/SendDocumentRecurringNotification.php index 91dd91cbf..6725f8512 100644 --- a/app/Listeners/Document/SendDocumentRecurringNotification.php +++ b/app/Listeners/Document/SendDocumentRecurringNotification.php @@ -3,6 +3,7 @@ namespace App\Listeners\Document; use App\Events\Document\DocumentRecurring as Event; +use App\Events\Document\DocumentSent; use App\Traits\Documents; class SendDocumentRecurringNotification @@ -35,6 +36,8 @@ class SendDocumentRecurringNotification $document->contact->notify(new $notification($document, "{$document->type}_recur_customer")); } + event(new DocumentSent($document)); + // Check if should notify users if (! $config['notify_user']) { return;