Skip to content

Commit

Permalink
Fixed issue where attendance audit number would incorrectly be added
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Edwards-cgi committed Aug 27, 2024
1 parent 3d2745f commit f1eceb9
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,14 @@ public void returnJury(BureauJwtPayload payload, String trialNumber, String loca
log.debug("setting time in for juror %s".formatted(jurorNumber));
}

if (appearance.getTimeOut() == null && StringUtils.isNotEmpty(returnJuryDto.getCheckOut())) {
appearance.setAppearanceStage(AppearanceStage.EXPENSE_ENTERED);
appearance.setTimeOut(LocalTime.parse(returnJuryDto.getCheckOut()));
if (StringUtils.isNotEmpty(returnJuryDto.getCheckOut())) {
if (appearance.getTimeOut() == null) {
appearance.setAppearanceStage(AppearanceStage.EXPENSE_ENTERED);
appearance.setTimeOut(LocalTime.parse(returnJuryDto.getCheckOut()));
log.debug("setting time out for juror %s".formatted(jurorNumber));
}
//Only give them an attendance number if they were checked out via this process
appearance.setAttendanceAuditNumber("J" + attendanceAuditNumber);
log.debug("setting time out for juror %s".formatted(jurorNumber));
}
appearance.setTrialNumber(trialNumber);
appearance.setSatOnJury(true);
Expand Down

0 comments on commit f1eceb9

Please sign in to comment.