Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions calicut_textiles/public/python/payroll_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down
Loading