Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't consider default shift in overlapping period if curr shift is found #709

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

ruchamahabal
Copy link
Member

Problem

Test Security shift

Time: 08:00:00 - 19:00:00
Begin check-in before shift start time (in minutes): 60
Allow check-out after shift end time (in minutes): 60
Actual time considering allowance: 07:00:00 - 20:00:00

Test Security - Night shift

Time: 19:00:00 - 07:00:00
Begin check-in before shift start time (in minutes): 60
Allow check-out after shift end time (in minutes): 60
Actual time considering allowance: 18:00:00 - 8:00:00

Employee has Night shift assigned on 1st June 2023, this is also applicable till 2nd June 8 AM. The employee has Test Security set as the default shift.

Checkin created at 02-06-2023 07:20:00. Fetches Test Security shift (default shift)

image

Ideally default shift should only be considered if the assigned shift is not found. Here the assigned shift is applicable till 02-06-2023 08:00:00

Solution

Don't consider default shift in the overlapping period if current shift is already fetched
Default shift is supposed to be used as a fallback

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant