feat: special treatment of services for participants of age 0-2
This commit is contained in:
1 parent
118f86b2a0
commit
6dbbfd87f8
7 files changed
+635
-18
No files matched your search
@@ -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