mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Merge pull request #15593 from Zlash65/fix-mod
[Minor] Item master - get_query for deferred accounts
This commit is contained in:
@@ -271,6 +271,24 @@ $.extend(erpnext.item, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frm.fields_dict['deferred_revenue_account'].get_query = function() {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
'root_type': 'Liability',
|
||||||
|
"is_group": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
frm.fields_dict['deferred_expense_account'].get_query = function() {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
'root_type': 'Asset',
|
||||||
|
"is_group": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
frm.fields_dict.customer_items.grid.get_field("customer_name").get_query = function(doc, cdt, cdn) {
|
frm.fields_dict.customer_items.grid.get_field("customer_name").get_query = function(doc, cdt, cdn) {
|
||||||
return { query: "erpnext.controllers.queries.customer_query" }
|
return { query: "erpnext.controllers.queries.customer_query" }
|
||||||
}
|
}
|
||||||
@@ -707,4 +725,4 @@ frappe.ui.form.on("UOM Conversion Detail", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user