Minor fixes for delivery notes with illegal chars
This commit is contained in:
parent
86e7503f70
commit
7fa19a140a
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ class GenerateDeliveryNote
|
|||
: $this->decodePrimaryKey($this->invoice->client->getSetting('invoice_design_id'));
|
||||
|
||||
$invitation = $this->invoice->invitations->first();
|
||||
$file_path = sprintf('%s%s_delivery_note.pdf', $this->invoice->client->invoice_filepath($invitation), $this->invoice->number);
|
||||
// $file_path = sprintf('%s%s_delivery_note.pdf', $this->invoice->client->invoice_filepath($invitation), $this->invoice->number);
|
||||
$file_path = sprintf('%sdelivery_note.pdf', $this->invoice->client->invoice_filepath($invitation));
|
||||
|
||||
if (config('ninja.phantomjs_pdf_generation') || config('ninja.pdf_generator') == 'phantom') {
|
||||
return (new Phantom)->generate($this->invoice->invitations->first());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue