mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove prefix from document pdf
This commit is contained in:
parent
20ea1a3cdb
commit
3e04be5d1d
@ -130,7 +130,7 @@ class InvoiceEmailEngine extends BaseEmailEngine
|
|||||||
|
|
||||||
$pdf = ((new CreateRawPdf($this->invitation, $this->invitation->company->db))->handle());
|
$pdf = ((new CreateRawPdf($this->invitation, $this->invitation->company->db))->handle());
|
||||||
|
|
||||||
$this->setAttachments([['file' => base64_encode($pdf), 'name' => ctrans('texts.invoice') . " " .$this->invoice->numberFormatter().'.pdf']]);
|
$this->setAttachments([['file' => base64_encode($pdf), 'name' => $this->invoice->numberFormatter().'.pdf']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//attach third party documents
|
//attach third party documents
|
||||||
|
@ -118,7 +118,10 @@ class TemplateEmail extends Mailable
|
|||||||
'logo' => $this->company->present()->logo($settings),
|
'logo' => $this->company->present()->logo($settings),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
foreach ($this->build_email->getAttachments() as $file) {
|
nlog($this->build_email->getAttachments());
|
||||||
|
|
||||||
|
|
||||||
|
foreach (array_reverse($this->build_email->getAttachments()) as $file) {
|
||||||
if(array_key_exists('file', $file))
|
if(array_key_exists('file', $file))
|
||||||
$this->attachData(base64_decode($file['file']), $file['name']);
|
$this->attachData(base64_decode($file['file']), $file['name']);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user