pdf file wrong filename #1509
This commit is contained in:
parent
7723d86c1d
commit
6a99281fff
1 changed files with 1 additions and 1 deletions
|
|
@ -1281,7 +1281,7 @@
|
|||
var design = getDesignJavascript();
|
||||
if (!design) return;
|
||||
var doc = generatePDF(invoice, design, true);
|
||||
var type = invoice.is_quote ? '{{ trans('texts.'.ENTITY_QUOTE) }}' : '{{ trans('texts.'.ENTITY_INVOICE) }}';
|
||||
var type = invoice.is_quote ? '{!! trans('texts.'.ENTITY_QUOTE) !!}' : '{!! trans('texts.'.ENTITY_INVOICE) !!}';
|
||||
doc.save(type + '-' + $('#invoice_number').val() + '.pdf');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue