Repeat Rules requirement
We have a requirement in repeat rules as under:
If a student fails in the previous attempt and repeats the course, he can repeat the course.
If the student gets a pass grade and tries to repeat the course, enrollment should be stopped and it should give an error. Student can repeat a passed course only with special permission.
Lets assume 0 - 59.99 are fail grades and 60 - 100 are pass grades.
If a student gets 55 in pervious attempt, he can repeat the course 3 times (including first attempt). On enrollment in the later terms, he should be enrolled with a message.
If the student gets 60 or above in the previous attempt and tries to repeat the course, during the enrollment it should give an error. If special permission is given he should be enrolled in the class with a message.