CSOF_DefaultFeeInfo_TDTM
Course Offering default fee info trigger handler/TDTM
Custom Permission | REDU - Admin |
Event | BeforeInsert, BeforeUpdate |
Object |
Course Offering |
Related RIO Education Settings | None |
Description
Whenever a Course Offering is inserted or updated and provided the Manual Fee Selection field is not checked, this class sets the Fee, Non Tuition Fee, and Other Course Fee fields by matching all the child fees for the Course fee against the Course Offering's Fee Label field.
If the Fee Label field is not set, then the Use Default Fee field on the related Course must be set. In this case, the class will set the Course Offering's fee fields using the values for the corresponding fields on the Course record.
If the Fee Label is blank and the Use Default fee field is unchecked, or if a valid fee cannot be found for the Fee Label, this class will throw an appropriate error.
Use case
This acts as a validation rule and also to update Course Offering.