Skip to content

Commit

Permalink
close #3109 Enhancement: Recurring Invoice does not attach PDF to gen…
Browse files Browse the repository at this point in the history
…erated email
  • Loading branch information
cuneytsenturk committed Feb 13, 2024
1 parent 74a5115 commit fc83075
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Listeners/Document/SendDocumentRecurringNotification.php
Expand Up @@ -30,10 +30,11 @@ public function handle(Event $event)
}

$notification = $config['class'];
$attach_pdf = true;

// Notify the customer
if ($this->canNotifyTheContactOfDocument($document)) {
$document->contact->notify(new $notification($document, "{$document->type}_recur_customer"));
$document->contact->notify(new $notification($document, "{$document->type}_recur_customer", $attach_pdf));
}

$sent = config('type.document.' . $document->type . '.auto_send', DocumentSent::class);
Expand Down

0 comments on commit fc83075

Please sign in to comment.