From 41eba0e2d19762efc84ea8f4e253deb71c321a26 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Tue, 24 Dec 2024 08:22:02 +0000 Subject: [PATCH] fix: Default Shift checker - Only include working days for counting --- .../doctype/default_shift_checker/default_shift_checker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/one_fm/operations/doctype/default_shift_checker/default_shift_checker.py b/one_fm/operations/doctype/default_shift_checker/default_shift_checker.py index 070e6791ed..ad18aae89c 100644 --- a/one_fm/operations/doctype/default_shift_checker/default_shift_checker.py +++ b/one_fm/operations/doctype/default_shift_checker/default_shift_checker.py @@ -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]) )