[minor] [fix] [issue] #618
This commit is contained in:
parent
59544ff542
commit
95391b176a
@ -67,10 +67,10 @@ erpnext.selling.Opportunity = wn.ui.form.Controller.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.frm.set_query("item_code", "enquiry_details", function() {
|
this.frm.set_query("item_code", "enquiry_details", function() {
|
||||||
var key = (me.frm.doc.enquiry_type === "Maintenance" ? "is_service_item" : "is_sales_item");
|
|
||||||
return {
|
return {
|
||||||
query: "controllers.queries.item_query",
|
query: "controllers.queries.item_query",
|
||||||
filters: { key: "Yes" }
|
filters: me.frm.doc.enquiry_type === "Maintenance" ?
|
||||||
|
{"is_service_item": "Yes"} : {"is_sales_item": "Yes"}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user