wip: service descriptions and car license plate field
This commit is contained in:
@@ -7,7 +7,6 @@ use App\BusProNet\Model\Pickup;
|
||||
use App\BusProNet\Model\Service;
|
||||
use App\Validator\Constraints as AppAssert;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
|
||||
#[AppAssert\Participant(groups: ['booking_edit'])]
|
||||
class ParticipantDto
|
||||
@@ -51,7 +50,7 @@ class ParticipantDto
|
||||
public array $board = [];
|
||||
public array $rentals = [];
|
||||
public ?Service $rentalInsurance = null;
|
||||
|
||||
|
||||
// Rental insurance checkbox state (boolean: true if rental insurance requested)
|
||||
public bool $rentalInsuranceSelected = false;
|
||||
|
||||
@@ -69,6 +68,9 @@ class ParticipantDto
|
||||
// Parking service object for pricing calculation (new, contains actual service with pricing)
|
||||
public ?Service $parkingService = null;
|
||||
|
||||
// License plate for participants with parking (optional, visible only when parking is selected)
|
||||
public ?string $licensePlate = null;
|
||||
|
||||
// Deprecated properties for backward compatibility - will be removed in future version
|
||||
public ?Service $transportationServiceTo = null;
|
||||
public ?Service $transportationServiceFro = null;
|
||||
@@ -105,5 +107,4 @@ class ParticipantDto
|
||||
{
|
||||
return 'O' === $this->status;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user