From 8579262f611b19396855d64aea2c20ae447b2067 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 5 Oct 2012 14:34:09 +0530 Subject: [PATCH] hide master_name if not master_type --- accounts/doctype/account/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/account/account.js b/accounts/doctype/account/account.js index a54c83a77a4..2d35bd136f7 100644 --- a/accounts/doctype/account/account.js +++ b/accounts/doctype/account/account.js @@ -48,7 +48,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) { } else { // credit days and type if customer or supplier cur_frm.set_intro(null); - cur_frm.toggle_display(['credit_days', 'credit_limit'], + cur_frm.toggle_display(['credit_days', 'credit_limit', 'master_name'], in_list(['Customer', 'Supplier'], doc.master_type)); // hide tax_rate