Skip to content

Commit

Permalink
fix: Default Shift checker - Only include working days for counting
Browse files Browse the repository at this point in the history
  • Loading branch information
ks093 committed Dec 24, 2024
1 parent 996fb79 commit 41eba0e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def create_default_shift_checker():
(Employee.shift_working == 1)
& (Employee.shift.isnotnull())
& (Employee.shift != EmployeeSchedule.shift)
& (EmployeeSchedule.employee_availability == "Working")
& (EmployeeSchedule.roster_type == "Basic")
& (EmployeeSchedule.date[start_date:last_day_of_month])
)
Expand Down

0 comments on commit 41eba0e

Please sign in to comment.