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

This commit is contained in:
Björn Fromme
2025-12-08 15:26:30 +01:00
parent 118f86b2a0
commit 6dbbfd87f8
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;