Change storeInvoicePdfAndGetPath method to storeDocumentPdfAndGetPath to make it compatible with other apps like Estimates, Credit/Debit Notes, Sales&Purchase Orders etc.
This commit is contained in:
@ -69,7 +69,7 @@ class PaymentReceived extends Notification
|
||||
|
||||
// Attach the PDF file
|
||||
if ($this->attach_pdf) {
|
||||
$message->attach($this->storeInvoicePdfAndGetPath($this->invoice), [
|
||||
$message->attach($this->storeDocumentPdfAndGetPath($this->invoice), [
|
||||
'mime' => 'application/pdf',
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user