commit | d888a59bd1684890b4db52e9c470cc93f7da78a7 | [log] [tgz] |
---|---|---|
author | bhavesh95863 <34086262+bhavesh95863@users.noreply.github.com> | Wed Aug 26 12:44:20 2020 +0530 |
committer | GitHub <noreply@github.com> | Wed Aug 26 12:44:20 2020 +0530 |
tree | e8e206eeaed1bd810db24bfd48a88ef8dc0a347a | |
parent | 7a927cefbd050990d8b72f93be0bf0a138e3ec78 [diff] |
fix: set company filter in condition
diff --git a/erpnext/hr/report/employee_leave_balance/employee_leave_balance.py b/erpnext/hr/report/employee_leave_balance/employee_leave_balance.py index db1d191..1b92358 100644 --- a/erpnext/hr/report/employee_leave_balance/employee_leave_balance.py +++ b/erpnext/hr/report/employee_leave_balance/employee_leave_balance.py
@@ -132,6 +132,9 @@ if filters.get('employee'): conditions['name'] = filters.get('employee') + if filters.get('company'): + conditions['company'] = filters.get('company') + return conditions def get_department_leave_approver_map(department=None):