Skip to content

Commit

Permalink
Merge pull request #27984 from frappe/mergify/bp/version-13-hotfix/pr…
Browse files Browse the repository at this point in the history
…-27850
  • Loading branch information
pateljannat authored Oct 18, 2021
2 parents 268893d + acc5cff commit 07a9f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/hr/doctype/shift_type/shift_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_assigned_employee(self, from_date=None, consider_default_shift=False):
assigned_employees = [x[0] for x in assigned_employees]

if consider_default_shift:
filters = {'default_shift': self.name}
filters = {'default_shift': self.name, 'status': ['!=', 'Inactive']}
default_shift_employees = frappe.get_all('Employee', 'name', filters, as_list=True)
default_shift_employees = [x[0] for x in default_shift_employees]
return list(set(assigned_employees+default_shift_employees))
Expand Down

0 comments on commit 07a9f16

Please sign in to comment.