ATTD_DoubleBooking_TDTM
Attendance double booking trigger handler/TDTM
Table of Contents
Custom Permission | REDU - Admin, REDU - Faculty, REDU - Student |
Event | AfterInsert, AfterUpdate, AfterDelete |
Object | Attendance |
Related RIO Education Settings | None |
Description
This class validates any double booked Faculty Attendances.
Whenever an Attendance record with a checked Faculty field, related Booking and a checked Skip Double Booking Validation field is inserted or deleted, or has its Booking, Skip Double Booking Validation or Excused fields updated, this class checks if this Faculty Member has any other Attendances booked in the same date range as the triggering Attendance.
It then checks the Revalidate Faculty Allocation checkbox on any Sessions related to either the triggering Attendance or any of these other Attendances.
Use case
This will trigger a checking on a Faculty's allocation to find out whether a double booking for Session has occurred.