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: mark absence for default shift on non-overlapping dates if another shift assignment exists #2602

Merged
merged 7 commits into from
Jan 20, 2025

Conversation

asmitahase
Copy link
Collaborator

@asmitahase asmitahase commented Jan 9, 2025

Issue

Employee isn't marked absent for default shift even when checkins are missing, if another shift assignment exists for future dates

Fix

Updated filter to exclude shift assignments starting on future dates.
Added a test case

asmitahase and others added 4 commits January 8, 2025 17:35
…ssigned shift exists for the employee but the absent dates aren't overlapping with it

chore: added a test for the case
chore: better test scenario
…absent_for_dates_with_no_attendance function takes care of which dates to consider for attendance.
@asmitahase asmitahase marked this pull request as ready for review January 9, 2025 06:16
@asmitahase asmitahase merged commit a46c4f2 into frappe:develop Jan 20, 2025
7 checks passed
asmitahase added a commit that referenced this pull request Jan 20, 2025
…2602

fix: mark absence for default shift on non-overlapping dates if another shift assignment exists (backport #2602)
asmitahase added a commit that referenced this pull request Jan 20, 2025
…2602

fix: mark absence for default shift on non-overlapping dates if another shift assignment exists (backport #2602)
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.

2 participants