Fix for invoice attachment

This commit is contained in:
David Bomba 2020-11-05 08:19:44 +11:00
parent 20a494f0b5
commit a1afb38514

View File

@ -80,7 +80,7 @@ class InvoiceEmailEngine extends BaseEmailEngine
->setViewText(ctrans('texts.view_invoice')); ->setViewText(ctrans('texts.view_invoice'));
if ($this->client->getSetting('pdf_email_attachment') !== false) { if ($this->client->getSetting('pdf_email_attachment') !== false) {
$this->setAttachments($invitation->pdf_file_path()); $this->setAttachments($this->invoice->pdf_file_path());
} }
return $this; return $this;