feat: special treatment of services for participants of age 0-2

This commit is contained in:
Björn Fromme committed 2026-03-16 12:00:55 +01:00
1 parent 28c426ca3c
commit cca8554e3d
7 files changed
+635 -18

No files matched your search

+6
View File
@@ -442,6 +442,12 @@ class BookingService
continue; // Skip participants without age information
}
// Skip babies - they only get services with explicit age ranges (handled by field filtering)
$age = $participant->getAge($bookingDto->travel->dateFrom);
if (null !== $age && $age <= Constants::BABY_MAX_AGE) {
continue;
}
// Skip ineligible participants (no skipasses available for their age)
if (false === $this->participantEligibilityService->isParticipantEligible($bookingDto, $participantIndex)) {
continue;