queries to server side

This commit is contained in:
Saurabh 2013-07-10 14:00:37 +05:30
commit 86408c3d44
3 changed files with 6 additions and 3 deletions

View File

@ -284,7 +284,6 @@ cur_frm.fields_dict.write_off_account.get_query = function(doc) {
// Write off cost center // Write off cost center
//----------------------- //-----------------------
cur_frm.fields_dict.write_off_cost_center.get_query = function(doc) { cur_frm.fields_dict.write_off_cost_center.get_query = function(doc) {
return{ return{
filters:{ filters:{
'group_or_ledger': 'Ledger', 'group_or_ledger': 'Ledger',
@ -350,7 +349,7 @@ cur_frm.fields_dict['entries'].grid.get_field('warehouse').get_query= function(d
cur_frm.fields_dict["entries"].grid.get_field("cost_center").get_query = function(doc) { cur_frm.fields_dict["entries"].grid.get_field("cost_center").get_query = function(doc) {
return { return {
filters: { filters: {
'company_name': doc.company, 'company': doc.company,
'group_or_ledger': 'Ledger' 'group_or_ledger': 'Ledger'
} }
} }

View File

@ -110,7 +110,9 @@ cur_frm.fields_dict['production_item'].get_query = function(doc) {
cur_frm.fields_dict['project_name'].get_query = function(doc, dt, dn) { cur_frm.fields_dict['project_name'].get_query = function(doc, dt, dn) {
return{ return{
filters:['Project', 'status', 'not in', 'Completed, Cancelled'] filters:[
['Project', 'status', 'not in', 'Completed, Cancelled']
]
} }
} }

View File

@ -20,6 +20,8 @@ patch_list = [
"execute:webnotes.reload_doc('core', 'doctype', 'docperm') # 2013-04-07", "execute:webnotes.reload_doc('core', 'doctype', 'docperm') # 2013-04-07",
"execute:webnotes.reload_doc('core', 'doctype', 'report')", "execute:webnotes.reload_doc('core', 'doctype', 'report')",
"execute:webnotes.reload_doc('core', 'doctype', 'doctype') # 2013-07-08", "execute:webnotes.reload_doc('core', 'doctype', 'doctype') # 2013-07-08",
"execute:webnotes.reload_doc('core', 'doctype', 'page') # 2013-06-24",
"patches.mar_2012.so_rv_mapper_fix",
"patches.mar_2012.clean_property_setter", "patches.mar_2012.clean_property_setter",
"patches.april_2012.naming_series_patch", "patches.april_2012.naming_series_patch",
"patches.mar_2012.cleanup_control_panel", "patches.mar_2012.cleanup_control_panel",