[fix] Remove filters on item group in territory and sales person target settings

This commit is contained in:
Nabin Hait 2016-02-04 17:22:26 +05:30
parent a731ad4433
commit 92c6c617de
2 changed files with 1 additions and 15 deletions

View File

@ -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" }
}

View File

@ -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"}
}
}
}