From 64f316bd2fe78a8ef28d097a186a9b97bf6e1a6f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 17 Jul 2013 15:12:22 +0530 Subject: [PATCH] [minor] [fix] in get item wise tax html, show empty cell if not tax for an account head for a particular item --- public/js/transaction.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/transaction.js b/public/js/transaction.js index 50de3d5478..f658292b59 100644 --- a/public/js/transaction.js +++ b/public/js/transaction.js @@ -333,7 +333,9 @@ erpnext.TransactionController = wn.ui.form.Controller.extend({ return repl("%(item_name)s%(taxes)s", { item_name: item.item_name, taxes: $.map(tax_accounts, function(head) { - return "(" + item_tax_record[head][0] + ") " + item_tax_record[head][1] + "" + return item_tax_record[head] ? + "(" + item_tax_record[head][0] + ") " + item_tax_record[head][1] + "" : + ""; }).join("\n") }); }).join("\n");