PREN_DepositFee_TDTM
Program Enrollment deposit fee trigger handler/TDTM
Custom Permission | REDU - Admin, REDU - Student |
Event | AfterInsert, AfterUpdate |
Object | Program Enrollment |
Related RIO Education Settings | None |
Description
Whenever a new Program Enrollment is inserted or whenever an existing Program Enrollment's Program Status field is updated, this class will create a Deposit Student Fee for the Program Enrollment, as long as the related Program Plan's Auto Generate Deposit Student Fee field is checked and both the Student Fee Type on the Program Enrollment and the Deposit Fee field on the Program Plan are set.
It will set the Due Date to the current date plus the number of days in the Deposit Fee Due Days field on the Program Enrollment's Program Plan's Program.
It will also create a new Fee Line for the Deposit Fee. It will take the Fee Unit Override, Discountable and Other Description fields from the Fee Schedule Fee Unit, Disountable and Fee Description fields on the current Fee Schedule. It will take the Other Amount field from either the Fee Amount (Domestic) or Fee Amount (International) fields on the Fee Schedule. The Other Fee Type field will be set to Self Paid.
If a Deposit Student Fee already exists for the Program Enrollment, a new one will not be created and the existing one will be updated instead.