From 40ba074594f93d0b388cc0d921acc594efc2f34c Mon Sep 17 00:00:00 2001 From: Jinil Sung Date: Wed, 13 Dec 2023 14:23:06 -0800 Subject: [PATCH] GRAD2-2426: task is completed. GRAD2-2426: task is completed. --- .../gov/educ/api/dataconversion/process/StudentProcess.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/dataconversion/process/StudentProcess.java b/api/src/main/java/ca/bc/gov/educ/api/dataconversion/process/StudentProcess.java index c22d53fa..c6308121 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/dataconversion/process/StudentProcess.java +++ b/api/src/main/java/ca/bc/gov/educ/api/dataconversion/process/StudentProcess.java @@ -923,9 +923,11 @@ private ConversionResultType processProgramCodes(GraduationStudentRecord student private Pair handleProgramCode(String programCode, GraduationStudentRecord student, StudentLoadType studentLoadType, StudentLoadType originalStudentLoadType, ConversionStudentSummaryDTO summary) { ConversionResultType resultType; boolean isCareerProgramCreated = false; + if (isStudentSCCPForTwoPrograms(student.getProgram(), originalStudentLoadType)) { + return Pair.of(ConversionResultType.SUCCESS, isCareerProgramCreated); + } if (isOptionalProgramCode(programCode)) { - resultType = isStudentSCCPForTwoPrograms(student.getProgram(), originalStudentLoadType)? ConversionResultType.SUCCESS : - createStudentOptionalProgram(programCode, student, studentLoadType, summary); + resultType = createStudentOptionalProgram(programCode, student, studentLoadType, summary); } else { resultType = createStudentCareerProgram(programCode, student, summary); if (ConversionResultType.SUCCESS == resultType) {