chore: included value in "key" for search condition

This commit is contained in:
Thomas antony
2025-07-12 09:48:08 +05:30
committed by GitHub
parent 09541c52e1
commit 75a00928b5

View File

@@ -49,7 +49,7 @@ def employee_query(
"""select {fields} from `tabEmployee`
where status in ('Active', 'Suspended')
and docstatus < 2
and ({search_conditions})
and ({key} like %(txt)s or {search_conditions})
{fcond} {mcond}
order by
(case when locate(%(_txt)s, name) > 0 then locate(%(_txt)s, name) else 99999 end),