1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix precision in PDF

This commit is contained in:
Hillel Coren 2017-12-13 16:41:19 +02:00
parent b77a75e502
commit 3d48b4e528
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -609,7 +609,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
for (var i=0; i<invoice.invoice_items.length; i++) {
var row = [];
var item = invoice.invoice_items[i];
var cost = NINJA.parseFloat(item.cost) ? formatMoneyInvoice(item.cost, invoice, null, getPrecision(item.cost)) : ' ';
var cost = NINJA.parseFloat(item.cost) ? formatMoneyInvoice(NINJA.parseFloat(item.cost), invoice, null, getPrecision(NINJA.parseFloat(item.cost))) : ' ';
var qty = NINJA.parseFloat(item.qty) ? roundSignificant(NINJA.parseFloat(item.qty)) + '' : ' ';
var notes = item.notes;
var productKey = item.product_key;