ORDL_DeleteRecords_TDTM
Order Line trigger handler/TDTM to delete related Study Registration and Study Credits
Table of Contents
Custom Permission | None |
Event | BeforeDelete |
Object | Order Line |
Related RIO Education Settings | None |
Description
Introduced in v3.14, this class deletes the Study Registration and Study Credits related to an Order Line, when said Order Line is deleted.
Use case
When a user registers to or ‘buys’ a Study Offering, an Order Line is generated.
To offset the amount that needs to be paid, the user can apply Study Credits (which will count as 1 usage). A Study Registration will be generated once the user pays the Order Line.
If the user cancels their Order Line, the Study Registration and the Study Credits being used will be cancelled (deleted) as well, in order to avoid orphan data in the system.
See: How Continuing Education works