(20260122) Overtime won't be rounded now.
This commit is contained in:
+1
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user