wip: transportation services

This commit is contained in:
Björn Fromme
2025-09-02 18:28:51 +02:00
parent bc9616e7de
commit 605b6ca64c
18 changed files with 1113 additions and 59 deletions
@@ -14,7 +14,7 @@ use App\Form\Service\Abstract\AbstractParticipantFieldHandler;
*
* This handler manages skipass selection for participants in the booking
* creation process. It processes the skiPass field from form submissions,
* validates age-appropriate and date-valid skipasses, and updates the
* validates age-appropriate and date-valid skipasses, and updates the
* participant DTO with the valid selection.
*
* Key responsibilities:
@@ -109,7 +109,6 @@ class ParticipantSkiPassFieldHandler extends AbstractParticipantFieldHandler
$participant->skiPass = $validSelection;
}
/**
* Validates if a selected skipass is still valid for the participant.
*
@@ -148,7 +147,7 @@ class ParticipantSkiPassFieldHandler extends AbstractParticipantFieldHandler
// Date constraints are already handled by the travel->getAdditionalServicesBySubTypes
// method with date filtering enabled (true, true parameters), so if the service
// is in the available services list, it already passed date validation.
return true; // Service passed both age and date validation
}
@@ -203,4 +202,4 @@ class ParticipantSkiPassFieldHandler extends AbstractParticipantFieldHandler
return false;
}
}
}