From 0065624fe05bb5961bd8e5d33cf65067305ae2ad Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 2 May 2018 12:20:55 +0530 Subject: [PATCH] Tax amount showing under wrong tax header in the report (#13843) --- erpnext/public/js/controllers/accounts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/public/js/controllers/accounts.js b/erpnext/public/js/controllers/accounts.js index 5baf84873e..3f664ae421 100644 --- a/erpnext/public/js/controllers/accounts.js +++ b/erpnext/public/js/controllers/accounts.js @@ -145,6 +145,8 @@ cur_frm.cscript.account_head = function(doc, cdt, cdn) { frappe.model.set_value(cdt, cdn, "description", r.message.account_name); } }) + } else if (d.charge_type == 'Actual' && d.account_head) { + frappe.model.set_value(cdt, cdn, "description", d.account_head.split(' - ')[0]); } }