SR_RollupPlaces_TDTM
Study Registration trigger handler/TDTM to rollup 'Booked Places'
Table of Contents
Custom Permission | None |
Event | AfterInsert, AfterUpdate, AfterDelete, AfterUndelete |
Object | Study Registration |
Related RIO Education Settings | None |
Description
Introduced in v3.14, this class will automatically calculate and roll up the ‘Booked Places’ of a Study Offering.
When a Study Registration:
- is created/updated against a Study Offering, and
- its Status is a value that is defined as contributing to a booked place,
this class will recalculate the number of ‘Booked Places’ based on the number of current Study Registrations.
Use case
This automates the calculation of how many users have confirmed their registration to a Study Offering.
For example (by default), if a Study Registration's status is ‘Confirmed’, this class will rollup and increase the ‘Booked Places’ field on the Study Offering by +1.
Similarly, if the Study Registration's status is changed from ‘Confirmed’ to a non-confirmed one, this class will decrease the Study Offering's ‘Booked Places’ field by -1.
See also: How Continuing Education works