[fix] [minor] [query] get sales bom item code
This commit is contained in:
parent
801ea1d5a0
commit
d505940b18
@ -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
|
return webnotes.conn.sql("""select name, description from tabItem
|
||||||
where is_stock_item="No" and is_sales_item="Yes"
|
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",
|
%s limit %s, %s""" % (searchfield, "%s",
|
||||||
get_match_cond(doctype, searchfield),"%s", "%s"),
|
get_match_cond(doctype, searchfield),"%s", "%s"),
|
||||||
("%%%s%%" % txt, start, page_len))
|
("%%%s%%" % txt, start, page_len))
|
Loading…
x
Reference in New Issue
Block a user