From 92c6c617dec036c3f91ec4ff125e8d0b8ed1f9c0 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 4 Feb 2016 17:22:26 +0530 Subject: [PATCH] [fix] Remove filters on item group in territory and sales person target settings --- erpnext/setup/doctype/sales_person/sales_person.js | 6 ------ erpnext/setup/doctype/territory/territory.js | 10 +--------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/erpnext/setup/doctype/sales_person/sales_person.js b/erpnext/setup/doctype/sales_person/sales_person.js index 6d02d0d829..8bae546a1c 100644 --- a/erpnext/setup/doctype/sales_person/sales_person.js +++ b/erpnext/setup/doctype/sales_person/sales_person.js @@ -27,12 +27,6 @@ cur_frm.fields_dict['parent_sales_person'].get_query = function(doc, cdt, cdn) { } } -cur_frm.fields_dict['targets'].grid.get_field("item_group").get_query = function(doc, cdt, cdn) { - return { - filters: { 'is_group': "No" } - } -} - cur_frm.fields_dict.employee.get_query = function(doc, cdt, cdn) { return { query: "erpnext.controllers.queries.employee_query" } } diff --git a/erpnext/setup/doctype/territory/territory.js b/erpnext/setup/doctype/territory/territory.js index 2beecebea7..cde04b33aa 100644 --- a/erpnext/setup/doctype/territory/territory.js +++ b/erpnext/setup/doctype/territory/territory.js @@ -25,12 +25,4 @@ cur_frm.fields_dict['parent_territory'].get_query = function(doc,cdt,cdn) { ['Territory', 'name', '!=', doc.territory_name] ] } -} - - -// ******************** ITEM Group ******************************** -cur_frm.fields_dict['targets'].grid.get_field("item_group").get_query = function(doc, cdt, cdn) { - return{ - filters:{ 'is_group': "No"} - } -} +} \ No newline at end of file