mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
pdf file wrong filename #1509
This commit is contained in:
parent
7723d86c1d
commit
6a99281fff
@ -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…
x
Reference in New Issue
Block a user