From 673887455f0e57c3bb02dae16b73fa47d80a1660 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 1 Oct 2015 11:18:40 +0530 Subject: [PATCH] [fix] Show Contribution (%) in Sales Team table in Customer Form --- erpnext/selling/doctype/customer/customer.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js index e596ae4162..42cc93a81b 100644 --- a/erpnext/selling/doctype/customer/customer.js +++ b/erpnext/selling/doctype/customer/customer.js @@ -17,7 +17,6 @@ frappe.ui.form.on("Customer", "refresh", function(frm) { } var grid = cur_frm.get_field("sales_team").grid; - grid.set_column_disp("allocated_percentage", false); grid.set_column_disp("allocated_amount", false); grid.set_column_disp("incentives", false); @@ -101,11 +100,11 @@ cur_frm.fields_dict['accounts'].grid.get_field('account').get_query = function(d 'company': d.company, "is_group": 0 }; - + if(doc.party_account_currency) { $.extend(filters, {"account_currency": doc.party_account_currency}); } - + return { filters: filters }