fix: feating employee in payroll entry (#26271)

This commit is contained in:
Anupam Kumar 2021-07-02 13:10:18 +05:30 committed by GitHub
parent 18533e381a
commit 877597bc16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -680,6 +680,10 @@ def employee_query(doctype, txt, searchfield, start, page_len, filters):
conditions = []
include_employees = []
emp_cond = ''
if not filters.payroll_frequency:
frappe.throw(_('Select Payroll Frequency.'))
if filters.start_date and filters.end_date:
employee_list = get_employee_list(filters)
emp = filters.get('employees')