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: validation for circular shift times #2783

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

asmitahase
Copy link
Collaborator

Process Auto attendance breaks for circular overlapping shifts, hence the validation

Screen.Recording.2025-02-12.at.10.33.00.AM.mov
  • Added test

test: validation for circular shift times
if total_minutes >= 1440:
frappe.throw(
title=_("Invalid Shift Times"),
msg=_("Please change shift times or buffers to avoid overlap."),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message is unclear. Point to the exact fields we need to change. "buffers" is unclear

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, maybe explicitly say, shift timings are overlapping with itself
Overlapping with what is ambiguous

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

Successfully merging this pull request may close these issues.

2 participants