From f62da519d620bb4175325bcdef8746b1571c43c5 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 30 Apr 2014 16:50:39 +0530 Subject: [PATCH] Sales BOM Parent Item search - Fixes #1544 --- erpnext/selling/doctype/sales_bom/sales_bom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/doctype/sales_bom/sales_bom.js b/erpnext/selling/doctype/sales_bom/sales_bom.js index b52c74de58f..0268b2f60e4 100644 --- a/erpnext/selling/doctype/sales_bom/sales_bom.js +++ b/erpnext/selling/doctype/sales_bom/sales_bom.js @@ -5,14 +5,14 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.toggle_enable('new_item_code', doc.__islocal); if(!doc.__islocal) { cur_frm.add_custom_button(__("Check for Duplicates"), function() { - return cur_frm.call_server('check_duplicate', 1) + return cur_frm.call_server('check_duplicate', 1) }, 'icon-search') } } cur_frm.fields_dict.new_item_code.get_query = function() { return{ - query: "selling.doctype.sales_bom.sales_bom.get_new_item_code" + query: "erpnext.selling.doctype.sales_bom.sales_bom.get_new_item_code" } } cur_frm.fields_dict.new_item_code.query_description = __('Please select Item where "Is Stock Item" is "No" and "Is Sales Item" is "Yes" and there is no other Sales BOM');