wip: service descriptions and car license plate field

This commit is contained in:
Björn Fromme
2025-09-10 12:53:33 +02:00
parent 195246af89
commit a3ea02a136
12 changed files with 623 additions and 5 deletions
+4 -3
View File
@@ -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;
}
}