mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
chore: included value in "key" for search condition
This commit is contained in:
@@ -49,7 +49,7 @@ def employee_query(
|
|||||||
"""select {fields} from `tabEmployee`
|
"""select {fields} from `tabEmployee`
|
||||||
where status in ('Active', 'Suspended')
|
where status in ('Active', 'Suspended')
|
||||||
and docstatus < 2
|
and docstatus < 2
|
||||||
and ({search_conditions})
|
and ({key} like %(txt)s or {search_conditions})
|
||||||
{fcond} {mcond}
|
{fcond} {mcond}
|
||||||
order by
|
order by
|
||||||
(case when locate(%(_txt)s, name) > 0 then locate(%(_txt)s, name) else 99999 end),
|
(case when locate(%(_txt)s, name) > 0 then locate(%(_txt)s, name) else 99999 end),
|
||||||
|
|||||||
Reference in New Issue
Block a user