From b324248c68b72bbb4596df0bc23e670ab5b7c468 Mon Sep 17 00:00:00 2001 From: Hendrik Hagendorn Date: Thu, 14 Sep 2017 17:18:34 +0200 Subject: [PATCH] Display unit cost with currency symbol --- resources/assets/js/pdf.pdfmake.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pdf.pdfmake.js b/resources/assets/js/pdf.pdfmake.js index 7be26d9e3f91..09c2a9568e86 100644 --- a/resources/assets/js/pdf.pdfmake.js +++ b/resources/assets/js/pdf.pdfmake.js @@ -497,7 +497,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) { var row = []; var item = invoice.invoice_items[i]; - var cost = formatMoneyInvoice(item.cost, invoice, 'none', getPrecision(item.cost)); + var cost = formatMoneyInvoice(item.cost, invoice, null, getPrecision(item.cost)); var qty = NINJA.parseFloat(item.qty) ? roundSignificant(NINJA.parseFloat(item.qty)) + '' : ''; var notes = item.notes; var productKey = item.product_key; @@ -526,7 +526,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) { } // show at most one blank line - if (shownItem && !notes && !productKey && (!cost || cost == '0' || cost == '0.00' || cost == '0,00')) { + if (shownItem && !notes && !productKey && !item.cost) { continue; }