Skip to content

Commit

Permalink
Merge pull request #757 from Opetushallitus/fix/OPHKIOS-121
Browse files Browse the repository at this point in the history
VKT(Backend): OPHKIOS-121 Fix determining when queue enrollment is partially free…
  • Loading branch information
lket authored Nov 15, 2024
2 parents 204f3ac + 2126a25 commit 8fb722c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,10 @@ public PublicEnrollmentDTO createEnrollmentToQueue(
);

if (freeEnrollmentDetails != null && freeEnrollment != null) {
if (freeEnrollmentDetails.textualSkillCount() == 0 || freeEnrollmentDetails.oralSkillCount() == 0) {
if (
EnrollmentUtil.getFreeExamsLeft(freeEnrollmentDetails.textualSkillCount()) == 0 ||
EnrollmentUtil.getFreeExamsLeft(freeEnrollmentDetails.oralSkillCount()) == 0
) {
publicEnrollmentEmailService.sendPartiallyFreeEnrollmentToQueueConfirmationEmail(
enrollment,
person,
Expand Down

0 comments on commit 8fb722c

Please sign in to comment.