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

This commit is contained in:
Björn Fromme
2026-03-16 12:00:55 +01:00
parent 28c426ca3c
commit cca8554e3d
7 changed files with 635 additions and 18 deletions
+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;