[fix] [minor] [query] get sales bom item code

This commit is contained in:
Anand Doshi 2013-08-06 11:54:26 +05:30
parent 801ea1d5a0
commit d505940b18

View File

@ -79,7 +79,7 @@ def get_new_item_code(doctype, txt, searchfield, start, page_len, filters):
return webnotes.conn.sql("""select name, description from tabItem
where is_stock_item="No" and is_sales_item="Yes"
and name not in (select name from `tabSales BOM`) and %s like "%s"
and name not in (select name from `tabSales BOM`) and %s like %s
%s limit %s, %s""" % (searchfield, "%s",
get_match_cond(doctype, searchfield),"%s", "%s"),
("%%%s%%" % txt, start, page_len))