Skip to content

Commit

Permalink
Merge pull request #255 from bcgov/develop/alex-GRAD2-2377
Browse files Browse the repository at this point in the history
GRAD2-2377
  • Loading branch information
arybakov-cgi authored Apr 20, 2024
2 parents f555a16 + f2f4237 commit ae6344e
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,15 +745,20 @@ private synchronized List<ReportGradStudentData> getNextPageStudentsFromGradStud
String paperType = e.getPaperType();
String certificateTypeCode = e.getCertificateTypeCode(); //either transcript or certificate codes
ReportGradStudentData s = getReportGradStudentDataByGraduationStudentRecordIdFromList(e.getGraduationStudentRecordId(), studentsInBatch);
if(s != null && "CUR".equalsIgnoreCase(s.getStudentStatus())) {
if(s != null) {
ReportGradStudentData dataResult = SerializationUtils.clone(s);
dataResult.setPaperType(paperType);
if ("YED4".equalsIgnoreCase(paperType)) {
dataResult.setTranscriptTypeCode(certificateTypeCode);
} else {
dataResult.setCertificateTypeCode(certificateTypeCode);
}
result.add(dataResult);
if("YED4".equalsIgnoreCase(paperType) && "CUR".equalsIgnoreCase(s.getStudentStatus())) {
result.add(dataResult);
}
if (!"YED4".equalsIgnoreCase(paperType)) {
result.add(dataResult);
}
}
}
return result;
Expand Down

0 comments on commit ae6344e

Please sign in to comment.