add get_query for revenue and expense account

This commit is contained in:
Zlash65 2018-10-05 12:26:32 +05:30
parent 00a16a9337
commit 2123b97d31

View File

@ -271,6 +271,24 @@ $.extend(erpnext.item, {
}
}
frm.fields_dict['deferred_revenue_account'].get_query = function(doc) {
return {
filters: {
'root_type': 'Liability',
"is_group": 0
}
}
}
frm.fields_dict['deferred_expense_account'].get_query = function(doc) {
return {
filters: {
'root_type': 'Asset',
"is_group": 0
}
}
}
frm.fields_dict.customer_items.grid.get_field("customer_name").get_query = function(doc, cdt, cdn) {
return { query: "erpnext.controllers.queries.customer_query" }
}