mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 16:54:36 -04:00
Output of variables in PDF with decimal dot instead of decimal comma #1874
This commit is contained in:
parent
c12ef4bd42
commit
b6df2a3eba
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -352,6 +352,11 @@ NINJA.decodeJavascript = function(invoice, javascript)
|
||||
var value = getDescendantProp(invoice, field) || ' ';
|
||||
value = doubleDollarSign(value) + '';
|
||||
value = value.replace(/\n/g, "\\n").replace(/\r/g, "\\r");
|
||||
|
||||
if (['amount', 'partial', 'client.balance', 'client.paid_to_date'].indexOf(field) >= 0) {
|
||||
value = formatMoneyInvoice(value, invoice);
|
||||
}
|
||||
|
||||
javascript = javascript.replace(match, '"'+value+'"');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user