From dca7ff03369952cbeea34566cce875eb04b9a66f Mon Sep 17 00:00:00 2001 From: Dany Robert Date: Fri, 14 Oct 2022 10:12:55 +0530 Subject: [PATCH] fix: specify doctype in employee query (#84) --- hrms/payroll/doctype/payroll_entry/payroll_entry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hrms/payroll/doctype/payroll_entry/payroll_entry.py b/hrms/payroll/doctype/payroll_entry/payroll_entry.py index c7c2c8bae7..0ce8cf8903 100644 --- a/hrms/payroll/doctype/payroll_entry/payroll_entry.py +++ b/hrms/payroll/doctype/payroll_entry/payroll_entry.py @@ -1010,6 +1010,7 @@ def employee_query(doctype, txt, searchfield, start, page_len, filters): conditions = [] include_employees = [] emp_cond = "" + doctype = "Employee" if not filters.payroll_frequency: frappe.throw(_("Select Payroll Frequency."))