Skip to content

Commit

Permalink
GRAD2-2377
Browse files Browse the repository at this point in the history
HD-22859 (GRAD) YE Distribution run should direct Certificates to School at Graduation, not School of Record
  • Loading branch information
arybakov-cgi committed Apr 19, 2024
1 parent f555a16 commit f2f4237
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 f2f4237

Please sign in to comment.