From 75a00928b5fe599433311b586152afff2ddab044 Mon Sep 17 00:00:00 2001 From: Thomas antony <77287334+thomasantony12@users.noreply.github.com> Date: Sat, 12 Jul 2025 09:48:08 +0530 Subject: [PATCH] chore: included value in "key" for search condition --- erpnext/controllers/queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py index d1e1262d339..90d5a3e649d 100644 --- a/erpnext/controllers/queries.py +++ b/erpnext/controllers/queries.py @@ -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),