close #3109 Enhancement: Recurring Invoice does not attach PDF to generated email
This commit is contained in:
parent
74a5115f75
commit
fc83075260
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue