Create Set of Enrollments - TBD
https://docs.google.com/document/d/12mbCpr_bZ76smY0hu_Ya1wnYSz1Fm-fbgcy5iZOP8tQ/edit#vvvv
Check that the student grade_level has increased due to a promotionIs the new grade_level greater than the last grade level?If yes then the student has been promoted, continue with this functionIf no, the grade_level has been changed for some reason other than advancement, do not run this functionIf thestudentgrade_level is greater than the end_grade of theplanthat is associated to thestudent programrecord selected in theSt udentcurrent_program field, then the plan has been completed.Set the status of thestudent programrecord selected in theStudentcurrent_program field to“completed”Set the program_end_date of thestudent programrecord selected in theStudentcurrent_program field to the date the grade_level value was changed
Note: a student might be promoted to the next grade level early, perhaps mid-term if they are exceptional students, so the date of the change is the date of the program completion.