pdf file wrong filename #1509

This commit is contained in:
Hillel Coren 2017-06-05 16:46:44 +03:00
parent 7723d86c1d
commit 6a99281fff

View File

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