fix: Program and Course Enrollment fixes #23333
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Program enrollment date not considered while creating course enrollments automatically.
Steps to replicate:
Validate Academic Term while checking for enrollment duplication
Steps to replicate:
Create 2 Program Enrollments for the same student and Academic Year and different Academic Term. The second one will throw duplicate validation because the academic term was not being considered while checking for duplicates.
Added Academic Term and Year date validations
Before: The enrollment date is not validated with the Academic Year / Term start and end dates
After: Added validations
Create Course Enrollment only for courses added in Program Enrollment
Before:
On submitting a Program Enrollment, course enrollments were getting created for all the courses in that program and not just the ones for which the student is enrolling (part of the enrolled courses child table).
After:
Course Enrollments will only be created for the courses mentioned in the
enrolled courses
child table. For example, in the following program there are 2 courses:But student only wants to enroll for one course out of that. So create course enrollment automatically for only these courses for that student