CSOF_DefaultFeeInfo_TDTM
Course Offering default fee info trigger handler/TDTM
Table of Contents
| 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.
Fee Status
As of v3.24, a new Fee Status field was added to Course Offering. The Fee information will only be updated if the status is set to "Not Processed" or "Update Fee". After the fee information is processed, this status is automatically set to "Processed". This prevents the fee information from being recalculated repeatedly for unrelated record updates.
After this, you will need to update the Fee Status field to "Update Fee" to re-run the fee calculation.
Use case
This acts as a validation rule and also to update Course Offering.