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:
Burak Çakırel
2021-04-30 14:57:44 +03:00
parent cc77fa780b
commit c66f0ac8be
3 changed files with 6 additions and 6 deletions

View File

@ -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',
]);
}