feat: special treatment of services for participants of age 0-2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user