From bc5c288db8e8ad12ec9e954b938bdfa8ab7b2ff9 Mon Sep 17 00:00:00 2001 From: AadithPunathilBuildsuite Date: Thu, 1 Jan 2026 13:42:47 +0530 Subject: [PATCH] fix:update the salary slip --- calicut_textiles/public/python/payroll_entry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calicut_textiles/public/python/payroll_entry.py b/calicut_textiles/public/python/payroll_entry.py index d2c00e8..f0a9f16 100644 --- a/calicut_textiles/public/python/payroll_entry.py +++ b/calicut_textiles/public/python/payroll_entry.py @@ -245,7 +245,6 @@ def create_overtime(pe, employees, employee_map, checkin_map, holiday_map): normal_start_for_late = shift_start + timedelta(minutes=early_threshold) normal_end_for_late = shift_end - timedelta(minutes=early_threshold) - early_threshold = 0 if early_threshold is None else early_threshold # Overtime before shift if in_time < normal_start: @@ -262,7 +261,7 @@ def create_overtime(pe, employees, employee_map, checkin_map, holiday_map): # if row.custom_early_going_minutes and row.custom_early_going_minutes > early_threshold: # total_early_minutes += int(row.custom_early_going_minutes) if in_time > normal_start_for_late: - total_early_minutes += early_threshold + minutes(in_time - normal_start_for_late) + total_early_minutes += early_threshold + minutes(normal_start_for_late - in_time) if out_time < normal_end_for_late: total_early_minutes += early_threshold + minutes(normal_end_for_late - out_time)