From 95391b176a1e7b73a48722407a39f7200c190a7a Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 19 Jul 2013 16:48:00 +0530 Subject: [PATCH] [minor] [fix] [issue] #618 --- selling/doctype/opportunity/opportunity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selling/doctype/opportunity/opportunity.js b/selling/doctype/opportunity/opportunity.js index 00acf55153..7c647c3f76 100644 --- a/selling/doctype/opportunity/opportunity.js +++ b/selling/doctype/opportunity/opportunity.js @@ -67,10 +67,10 @@ erpnext.selling.Opportunity = wn.ui.form.Controller.extend({ } this.frm.set_query("item_code", "enquiry_details", function() { - var key = (me.frm.doc.enquiry_type === "Maintenance" ? "is_service_item" : "is_sales_item"); return { query: "controllers.queries.item_query", - filters: { key: "Yes" } + filters: me.frm.doc.enquiry_type === "Maintenance" ? + {"is_service_item": "Yes"} : {"is_sales_item": "Yes"} }; });