Bug#215 updated regularization logic based on 48-hour checkout threshold for attendanceLogs. #97

Merged
vikas.nale merged 1 commits from pramod_Bug-#215 into Issue_May_2W 2025-05-12 07:57:41 +00:00
Collaborator

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".

_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".
pramod.mahajan added 1 commit 2025-05-12 06:10:51 +00:00
vikas.nale merged commit 73152dbf0a into Issue_May_2W 2025-05-12 07:57:41 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/marco.pms.web#97
No description provided.