SR_UsedStudyCredits_TDTM
Study Registration trigger handler/TDTM to rollup its Study Credit usage
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 rolls up the Study Credits usage.
When Study Registrations are created against a Study Credit, this class will recalculate the ‘Used Quantity’ on the Study Credits, based on the number of current Study Registrations and depending on the Study Registration's ‘Status’.
For example, if a Study Credit is selected/applied during Study Registration:
Scenario | Study Credit's ‘Used Quantity’ |
1 Study Registration, with Status = Draft | 0 |
1 Study Registration, with Status = Confirmed | 1 |
1 Study Registration, with Status = Cancelled | 0 |
2 Study Registrations
|
1 |
2 Study Registrations
|
0 |
Use case
Study Credits represents “vouchers” that can be used when buying a course (Study Offering). When the Study Registration is created, a Study Credit can be selected (applied) to offset the amount that has to be paid.
See here for details.