Skip to content

Commit

Permalink
GRAD2-2220 - CLCF to be coded as meeting the requirements of the Fren…
Browse files Browse the repository at this point in the history
…ch Immersion Dual Dogwood
  • Loading branch information
kamal-mohammed committed Jul 18, 2023
1 parent fa0c0df commit 35efafe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ public RuleProcessorData fire() {
StudentCourse sc = studentCourseIterator2.next();
if(!requirementAchieved && sc.isUsed()) {
for(OptionalProgramRequirement pR:gradOptionalProgramMinCreditElectiveRulesMatch) {
if(pR.getOptionalProgramRequirementCode().getRequiredLevel() != null && pR.getOptionalProgramRequirementCode().getRequiredLevel().trim().compareTo("11 or 12") == 0 && sc.getLanguage() != null && sc.getLanguage().equalsIgnoreCase("F") && (sc.getCourseLevel().trim().contains("11") || sc.getCourseLevel().trim().contains("12"))) {
if(pR.getOptionalProgramRequirementCode().getRequiredLevel() != null
&& pR.getOptionalProgramRequirementCode().getRequiredLevel().trim().compareTo("11 or 12") == 0
&& sc.getLanguage() != null
&& sc.getLanguage().equalsIgnoreCase("F")
&& (sc.getCourseLevel().trim().contains("11") || sc.getCourseLevel().trim().contains("12")
|| sc.getCourseCode().contains("CLC"))
) {
requiredCreditsGrad11or12 = Integer.parseInt(pR.getOptionalProgramRequirementCode().getRequiredCredits());
totalCreditsGrade11or12 = processCredits(pR,totalCreditsGrade11or12,sc,requirementsMet);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ public RuleData fire() {
return ruleProcessorData;
}

studentCourses.forEach(sc -> {
if (sc.getCourseCode().contains("CLC")) {
sc.setCourseLevel("12");
}
});

for (ProgramRequirement gradProgramRule : gradProgramRules) {
requiredCredits = Integer.parseInt(gradProgramRule.getProgramRequirementCode().getRequiredCredits().trim());
totalCredits = studentCourses
Expand Down Expand Up @@ -92,6 +98,13 @@ public RuleData fire() {

logger.debug("Min Credits -> Required:{} Has : {}",requiredCredits,totalCredits);
}

ruleProcessorData.getStudentCourses().forEach(sc -> {
if (sc.getCourseCode().contains("CLC")) {
sc.setCourseLevel("");
}
});

ruleProcessorData.setStudentCourses(studentCourses);
return ruleProcessorData;
}
Expand Down

0 comments on commit 35efafe

Please sign in to comment.