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

Staff: add the ability for staff members to cancel an absence before it occurs #1832

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

SKuipers
Copy link
Member

Currently, if staff members submit an absence and something comes up where it's no longer necessary, they would need to contact an admin to delete it for them. However, when this happens first thing in the morning when arranging staff coverage, this can be problematic. This feature adds the ability for staff members to cancel an absence, including any attached coverage requests, as long as it is on or before the date of the absence. Doing so sends a message to all parties involved about the cancelled absence.

The main changes are:

  • Adds a new Cancelled status to gibbonStaffAbsence, and implements in existing queries & tables
  • Adds a "Cancel" button to the View Absences page for a staff member
  • Adds new messages for AbsenceCancelled and AbsenceWithCoverageCancelled
  • Also updates the existing coverage cancellation option so it can be used to cancel requested coverage without cancelling the absence.

How Has This Been Tested?
Locally, and soon to be tested in production.

@SKuipers SKuipers added this to the v28 milestone May 17, 2024
@SKuipers SKuipers changed the base branch from v27.0.00 to v28.0.00 June 24, 2024 02:09
@SKuipers SKuipers merged commit ae03c82 into GibbonEdu:v28.0.00 Jun 24, 2024
5 checks passed
@SKuipers SKuipers deleted the feature/Absence_Cancel branch June 24, 2024 02:25
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