Merge pull request #48804 from mihir-kandoi/st44619

fix: sql error in quality inspection
This commit is contained in:
Mihir Kandoi
2025-07-28 16:53:21 +05:30
committed by GitHub

View File

@@ -387,7 +387,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters):
return frappe.db.sql(
f"""
SELECT distinct item_code, item_name, item_group
SELECT distinct item_code, item_name
FROM `tab{from_doctype}`
WHERE parent=%(parent)s and docstatus < 2 and item_code like %(txt)s
{qi_condition} {cond} {mcond}