(20260122) Overtime won't be rounded now.

This commit is contained in:
2026-01-22 14:27:35 +05:30
parent 35952f9eae
commit 610bb3ec38
+1 -1
View File
@@ -453,7 +453,7 @@ def sync_attendance_to_tcaoff(
continue continue
# Update the attendance on TCAOFF: # Update the attendance on TCAOFF:
hours_worked = work["work_seconds"] // (60 * 60) hours_worked = work["work_seconds"] / (60.0 * 60.0)
if hours_worked > 10.0: status = "OT" if hours_worked > 10.0: status = "OT"
elif 7.5 < hours_worked <= 10.0: status = "P" elif 7.5 < hours_worked <= 10.0: status = "P"
elif 2.5 < hours_worked <= 5.0: status = "H" elif 2.5 < hours_worked <= 5.0: status = "H"