Bug#215 updated regularization logic based on 48-hour checkout threshold for attendanceLogs. #97
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "pramod_Bug-#215"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/components/Activities/AttendLogs
Issue
There was no logic in place to determine whether a user's checkout should be marked as "Regularized" based on the time elapsed since their initial activity (e.g., Check-In). As a result, all checkout entries were treated the same, regardless of how much time had passed.
Fixed
Added logic to check the time difference between activityTime and checkoutTime using a 48-hour threshold:
If the checkout occurs within 48 hours of the activity → show "Check-Out" (non-regularized).
If the checkout occurs after 48 hours → show "Regularized".