From 8568f68ad2c115921a4c2217d04991656dd2785a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 21 Jul 2016 20:18:32 +0300 Subject: [PATCH] Show 0% tax rates in line items --- public/built.js | 4 ++-- public/js/pdf.pdfmake.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/built.js b/public/built.js index eae551d8d9ff..407cb42b2898 100644 --- a/public/built.js +++ b/public/built.js @@ -31461,10 +31461,10 @@ NINJA.invoiceLines = function(invoice) { } if (showItemTaxes) { var str = ' '; - if (tax1) { + if (item.tax_name1) { str += tax1.toString() + '%'; } - if (tax2) { + if (item.tax_name2) { if (tax1) { str += ' '; } diff --git a/public/js/pdf.pdfmake.js b/public/js/pdf.pdfmake.js index 1af1cf482560..cb841750c0ee 100644 --- a/public/js/pdf.pdfmake.js +++ b/public/js/pdf.pdfmake.js @@ -421,10 +421,10 @@ NINJA.invoiceLines = function(invoice) { } if (showItemTaxes) { var str = ' '; - if (tax1) { + if (item.tax_name1) { str += tax1.toString() + '%'; } - if (tax2) { + if (item.tax_name2) { if (tax1) { str += ' '; }