close #2626 Fixed: Recurring Invoice mark as "Draft" instead of "Sent" ( #8669hjyqw )
This commit is contained in:
parent
687ee09591
commit
aedd9710c1
@ -3,6 +3,7 @@
|
|||||||
namespace App\Listeners\Document;
|
namespace App\Listeners\Document;
|
||||||
|
|
||||||
use App\Events\Document\DocumentRecurring as Event;
|
use App\Events\Document\DocumentRecurring as Event;
|
||||||
|
use App\Events\Document\DocumentSent;
|
||||||
use App\Traits\Documents;
|
use App\Traits\Documents;
|
||||||
|
|
||||||
class SendDocumentRecurringNotification
|
class SendDocumentRecurringNotification
|
||||||
@ -35,6 +36,8 @@ class SendDocumentRecurringNotification
|
|||||||
$document->contact->notify(new $notification($document, "{$document->type}_recur_customer"));
|
$document->contact->notify(new $notification($document, "{$document->type}_recur_customer"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event(new DocumentSent($document));
|
||||||
|
|
||||||
// Check if should notify users
|
// Check if should notify users
|
||||||
if (! $config['notify_user']) {
|
if (! $config['notify_user']) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user