mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-07 12:33:19 +00:00
fix: sql error in quality inspection
(cherry picked from commit 062b245e3f)
This commit is contained in:
@@ -387,7 +387,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
|
|
||||||
return frappe.db.sql(
|
return frappe.db.sql(
|
||||||
f"""
|
f"""
|
||||||
SELECT distinct item_code, item_name, item_group
|
SELECT distinct item_code, item_name
|
||||||
FROM `tab{from_doctype}`
|
FROM `tab{from_doctype}`
|
||||||
WHERE parent=%(parent)s and docstatus < 2 and item_code like %(txt)s
|
WHERE parent=%(parent)s and docstatus < 2 and item_code like %(txt)s
|
||||||
{qi_condition} {cond} {mcond}
|
{qi_condition} {cond} {mcond}
|
||||||
|
|||||||
Reference in New Issue
Block a user