Booking plan line trigger handler/TDTM
If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.
|Custom Permission||REDU - Admin
|Related RIO Education Settings||Faculty SC Date Recalculation Batch Size
Faculty SC Date Recalculation Job Mode
Respect Facility Availability For Alloc.
Student SC Date Recalculation Batch Size
Student SC Date Recalculation Job Mode
Whenever a Plan Line record is updated, and if it was made from a Session (Session Id field set), this class will check if the Plan Line's Double Booking Count has been updated to a non-zero value.
If it has, and if the related Session's Booking Status is not 'Draft', it updates the Booking Issue field to add a message with the Double Booking Count and updates the Booking Status to 'Booked with Issue'. It will also post a platform event to notify the Session Scheduler about the status.
If the SKIPBOOKINGCREATION flag is false, then this class will also create new Bookings based on the Plan Line and relate them back to the Session.
If the 'Respect Facility Availability For Alloc.' custom setting is enabled, then the availability of the facility on the Session Time will be respected, meaning it will not be linked to the new Booking if it is not available.
If a new Plan Line is inserted, this class will follow the same process as update but will also update the related Session's 'Plan Line' field to link it to the Plan Line before doing the double booking update and booking creation.