add get_query for revenue and expense account
diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js
index 2fe106e..86615d4 100644
--- a/erpnext/stock/doctype/item/item.js
+++ b/erpnext/stock/doctype/item/item.js
@@ -271,6 +271,24 @@
}
}
+ 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" }
}