close #3109 Enhancement: Recurring Invoice does not attach PDF to generated email

This commit is contained in:
Cüneyt Şentürk 2024-02-13 16:27:23 +03:00
parent 74a5115f75
commit fc83075260
1 changed files with 2 additions and 1 deletions

View File

@ -30,10 +30,11 @@ class SendDocumentRecurringNotification
}
$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);