fix: payroll-entry minor fix

This commit is contained in:
Anurag Mishra 2021-07-06 13:36:23 +05:30
parent c0817838d9
commit f0b62f70d5

View File

@ -686,7 +686,7 @@ def employee_query(doctype, txt, searchfield, start, page_len, filters):
if filters.start_date and filters.end_date:
employee_list = get_employee_list(filters)
emp = filters.get('employees')
emp = filters.get('employees') or []
include_employees = [employee.employee for employee in employee_list if employee.employee not in emp]
filters.pop('start_date')
filters.pop('end_date')