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, 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.
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.