wip: transportation services
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user