From cea01c72127ca0666085fda069bb1bd12eeec8f0 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 19 Jul 2012 09:15:12 +0530 Subject: [PATCH] item code get query in customer issue --- erpnext/support/doctype/customer_issue/customer_issue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/support/doctype/customer_issue/customer_issue.js b/erpnext/support/doctype/customer_issue/customer_issue.js index 0749424d929..545ff5669fd 100644 --- a/erpnext/support/doctype/customer_issue/customer_issue.js +++ b/erpnext/support/doctype/customer_issue/customer_issue.js @@ -128,7 +128,7 @@ cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) { else{ return 'SELECT `tabItem`.name, `tabItem`.item_name, `tabItem`.description \ FROM `tabItem` \ - WHERE `tabItem`.docstatus != 2 AND `tabItem`.name LIKE "%s" ORDER BY `tabItem`.name ASC LIMIT 50'; + WHERE `tabItem`.docstatus != 2 AND `tabItem`.%(key)s LIKE "%s" ORDER BY `tabItem`.name ASC LIMIT 50'; } }