mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
queries to server side
This commit is contained in:
@@ -284,7 +284,6 @@ cur_frm.fields_dict.write_off_account.get_query = function(doc) {
|
||||
// Write off cost center
|
||||
//-----------------------
|
||||
cur_frm.fields_dict.write_off_cost_center.get_query = function(doc) {
|
||||
|
||||
return{
|
||||
filters:{
|
||||
'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) {
|
||||
return {
|
||||
filters: {
|
||||
'company_name': doc.company,
|
||||
'company': doc.company,
|
||||
'group_or_ledger': 'Ledger'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user