mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
[fix] [minor] sales and purchase get_queries
This commit is contained in:
@@ -58,6 +58,15 @@ $.extend(erpnext.queries, {
|
||||
return { filters: { customer: doc.customer } };
|
||||
},
|
||||
|
||||
supplier_filter: function(doc) {
|
||||
if(!doc.supplier) {
|
||||
wn.throw(wn._("Please specify a") + " " +
|
||||
wn._(wn.meta.get_label(doc.doctype, "supplier", doc.name)));
|
||||
}
|
||||
|
||||
return { filters: { supplier: doc.supplier } };
|
||||
},
|
||||
|
||||
not_a_group_filter: function() {
|
||||
return { filters: { is_group: "No" } };
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user