CSEN_PopulateDate_TDTM
Course Connection date trigger handler/TDTM
Custom Permission | REDU - Admin, REDU - Student |
Event | BeforeInsert, BeforeUpdate |
Object | Course Connection |
Related RIO Education Settings | None |
Description
When a new Course Connection is inserted, or when an existing Course Connection's Course Offering or Enrollment Status fields are updated, calculate the Course Connection's Start Date, Census Date, Due Date, End Date and Enrollment Date fields accordingly.
If the Enrollment Status is Enrolled, then the Start Date, Census Date, Due Date and Enrollment Date fields are calculated. If the related Course Offering's delivery method is Online - Self Learning, then the fields are calculated based on the current date. Otherwise, they are taken from the related Term record. The Enrollment Date is always set to the current date.
If the Enrollment Status is Completed, then the End Date is set to the current date. If the Course Offering field has been cleared, then all the date fields are cleared.