Fixed issue if there are line breaks in the account invoice terms

This commit is contained in:
Hillel Coren 2015-03-17 13:07:33 +02:00
parent 3e55f43270
commit 392fd537cb

View File

@ -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()))