Proposals

This commit is contained in:
Hillel Coren 2018-02-09 14:42:15 +02:00
parent 7fe07462e4
commit c4f2f20049

View File

@ -132,7 +132,7 @@
value = doubleDollarSign(value) + '';
value = value.replace(/\n/g, "\\n").replace(/\r/g, "\\r");
if (['amount', 'partial', 'balance', 'paid_to_date'].indexOf(field) >= 0) {
if (['amount', 'partial', 'client.balance', 'client.paid_to_date'].indexOf(field) >= 0) {
value = formatMoneyInvoice(value, invoice);
} else if (['invoice_date', 'due_date', 'partial_due_date'].indexOf(field) >= 0) {
value = moment.utc(value).format('{{ $account->getMomentDateFormat() }}');