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]); } }