From 96efd2ba9b20d3f9f23fda5b270c6f4f8f79edcf Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 1 Aug 2012 12:00:30 +0530 Subject: [PATCH 1/2] fix in quotation item's get query --- erpnext/selling/doctype/quotation/quotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index ad3b50def4..9bc699660d 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -327,7 +327,7 @@ cur_frm.fields_dict['quotation_details'].grid.get_field('item_code').get_query= precision: precision }); } else { - return repl("SELECT name, item_name, description FROM tabItem WHERE `tabItem`.%(key)s LIKE '%s' %(cond)s ORDER BY tabItem.item_code DESC LIMIT 50", {cond:cond}); + return repl("SELECT name, item_name, description FROM tabItem item WHERE `tabItem`.%(key)s LIKE '%s' %(cond)s ORDER BY tabItem.item_code DESC LIMIT 50", {cond:cond}); } } From cf546d547de4405951050a3cbc1483f952505846 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 1 Aug 2012 12:05:13 +0530 Subject: [PATCH 2/2] fix in quotation item's get query --- erpnext/selling/doctype/quotation/quotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index 9bc699660d..2f97badd00 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -327,7 +327,7 @@ cur_frm.fields_dict['quotation_details'].grid.get_field('item_code').get_query= precision: precision }); } else { - return repl("SELECT name, item_name, description FROM tabItem item WHERE `tabItem`.%(key)s LIKE '%s' %(cond)s ORDER BY tabItem.item_code DESC LIMIT 50", {cond:cond}); + return repl("SELECT name, item_name, description FROM `tabItem` item WHERE item.%(key)s LIKE '%s' %(cond)s ORDER BY item.item_code DESC LIMIT 50", {cond:cond}); } }