StatusBadge: preserve late/early/ot minutes for abnormal records (don't zero them out)
This commit is contained in:
@@ -752,10 +752,6 @@ def calculate_attendance_status(check_in, check_out, shift_start, shift_end):
|
||||
result["status_text"] = f"異常-早退{result['early_minutes']}分"
|
||||
else:
|
||||
result["status_text"] = f"異常-OT{result['ot_minutes']}分"
|
||||
result["late_minutes"] = 0
|
||||
result["early_minutes"] = 0
|
||||
result["ot_minutes"] = 0
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user