mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
[fix] [minor] [query] get sales bom item code
This commit is contained in:
@@ -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))
|
||||||
Reference in New Issue
Block a user