CSEN_RemoveFeeLines_TDTM
Course Connection trigger handler/TDTM to remove/delete fee line
Custom Permission | REDU - Student, REDU - Admin |
Event | AfterUpdate |
Object | Course Connection |
Related RIO Education Settings | None |
Description
If a student withdraws from a Course before census date, meaning:
- the Enrollment Status field on a Course Connection is set to Withdrawn or Withdrawn With Penalty, and,
- the Census Date field is greater than the current date,
then, this class will delete any related Fee Lines, provided that:
- the Locked field is not checked, and,
- the Paid Amount field is set to 0.
- From v3.14.2 onwards, this class will also check the type of Payment records generated.
If there are disbursements, refunds, and voided payments, then, the related Fee Lines will be deleted as well, even if the Paid Amount field is not 0.
This is to allow students to withdraw from Courses before the Census Date, if no "real" payments were made.
- From v3.14.2 onwards, this class will also check the type of Payment records generated.
If this deletion causes any Student Fee records have no related Fee Lines, then those Student Fees are also deleted.
Use case
This is to automatically delete Fee Lines for a Course, since the student does not need to pay for it because he/she withdrew from the Course before census date.