ORDL_StudyCreditRollup_TDTM
Table of Contents
| Custom Permission | None |
| Event | After Insert, After Update, After Delete, After Undelete |
| Object | Order Line |
| Related RIO Education Settings | None |
Description
Introduced in v3.22, this trigger handler will automatically roll up the Credited Amount from Order Lines to the Used Quantity on the linked Study Credit.
This automatically will run whenever the Order Line’s Credited Amount is created or updated.
The rollup will be skipped if the Order Line does not have a Study Credit linked.
Use case
In the event that an Order Line is created or updated, the Credited Amount will be recalculated and rolled up to the Study Credit - Used Quantity.