CSEN_CourseFee_TDTM
Course Connection course fee trigger handler/TDTM
Custom Permission | REDU - Admin, REDU - Faculty, REDU - Student |
Event | BeforeInsert, BeforeUpdate |
Object | Course Connection |
Related RIO Education Settings | None |
Description
Whenever a new student Course Connection with a related Course Offering is inserted, or whenever an existing student Course Connection's Course Offering field is updated, this class sets its Fee Amount and Fee Discountable fields using the relevant fee amount field from the related Course Offering (either Fee Amount (Domestic) or Fee Amount (International)) and the Discountable field on the related Fee Schedule.
If the Fee Type Option is FEE-HELP and the Fee Method starts with 'Term' or 'Course' but does not include 'Fixed Term', then this class will also set the FEE-HELP amount by subtracting the values of the Funding Assistance, Discount Amount and Upfront Payment fields from the Fee Amount field.
If the FEE-HELP amount is less than 0, then the Funding has gone over. If the Upfront Payment field has been updated but the Funding Assistance field has not, it will subtract the total FEE-HELP amount from the Funding Assistance if there is enough funds and then set the FEE-HELP field to 0. If not, it will raise an error.
The Funding Assistance 2 field will be set to the final FEE-HELP amount and the Loan Fee field will be set to the product of Funding Assistance 2 and the Loan Fee field on the related Course Offering's Fee Schedule Term's 'Fee Schedule' divided by 100.