From 875c941f3d0ff2127fb7f9e7258a92234d5410ef Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 18 Jun 2018 17:40:42 +0530 Subject: [PATCH] fixes in setting itemised tax breakup --- erpnext/public/js/controllers/taxes_and_totals.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/erpnext/public/js/controllers/taxes_and_totals.js b/erpnext/public/js/controllers/taxes_and_totals.js index 865a5ffd77..b6690cbcbe 100644 --- a/erpnext/public/js/controllers/taxes_and_totals.js +++ b/erpnext/public/js/controllers/taxes_and_totals.js @@ -339,11 +339,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({ set_item_wise_tax: function(item, tax, tax_rate, current_tax_amount) { // store tax breakup for each item let tax_detail = tax.item_wise_tax_detail; - - let key = item.item_code; - if(item.item_name && !Object.keys(tax_detail).includes(item.item_name)) { - key = item.item_name; - } + let key = item.item_code || item.item_name; let item_wise_tax_amount = current_tax_amount * this.frm.doc.conversion_rate; if (tax_detail && tax_detail[key])