Fixed issue if there are line breaks in the account invoice terms
This commit is contained in:
parent
3e55f43270
commit
392fd537cb
1 changed files with 2 additions and 2 deletions
|
|
@ -673,10 +673,10 @@
|
|||
invoice.contact = _.findWhere(invoice.client.contacts, {send_invoice: true});
|
||||
|
||||
if (!invoice.terms) {
|
||||
invoice.terms = "{{ $account->invoice_terms }}";
|
||||
invoice.terms = "{{ str_replace(["\r\n","\r","\n"], '\n', addslashes($account->invoice_terms)) }}";
|
||||
}
|
||||
if (!invoice.invoice_footer) {
|
||||
invoice.invoice_footer = "{{ $account->invoice_footer }}";
|
||||
invoice.invoice_footer = "{{ str_replace(["\r\n","\r","\n"], '\n', addslashes($account->invoice_footer)) }}";
|
||||
}
|
||||
|
||||
@if (file_exists($account->getLogoPath()))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue