[minor] [fix] in get item wise tax html, show empty cell if not tax for an account head for a particular item
diff --git a/public/js/transaction.js b/public/js/transaction.js
index 50de3d5..f658292 100644
--- a/public/js/transaction.js
+++ b/public/js/transaction.js
@@ -333,7 +333,9 @@
return repl("<tr><td>%(item_name)s</td>%(taxes)s</tr>", {
item_name: item.item_name,
taxes: $.map(tax_accounts, function(head) {
- return "<td>(" + item_tax_record[head][0] + ") " + item_tax_record[head][1] + "</td>"
+ return item_tax_record[head] ?
+ "<td>(" + item_tax_record[head][0] + ") " + item_tax_record[head][1] + "</td>" :
+ "<td></td>";
}).join("\n")
});
}).join("\n");