feat: show room prices in room assignment form field

This commit is contained in:
Björn Fromme committed 2025-12-09 12:55:00 +01:00
1 parent 9c6860ecc6
commit 31f414b4d8
22 files changed
+193 -92

No files matched your search

+1 -1
View File
@@ -292,7 +292,7 @@ class BookingDto
public function createRoomSelectionSnapshot(): array
{
return array_map(
fn ($roomSelection) => [(int) $roomSelection->roomId, (int) $roomSelection->quantity],
fn ($roomSelection) => [(int) $roomSelection->id, (int) $roomSelection->quantity],
$this->roomSelections
);
}
+5 -3
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace App\Form\Model;
use Symfony\Component\Validator\Constraints as Assert;
@@ -7,11 +9,11 @@ use Symfony\Component\Validator\Constraints as Assert;
class RoomSelectionDto
{
#[Assert\NotNull(message: 'Bitte eine Zimmerkategorie auswählen', groups: ['booking_create_step_1'])]
public ?int $roomId = null;
public ?int $id = null;
public ?string $roomLabel = null;
public ?string $label = null;
public ?float $roomPrice = null;
public ?float $price = null;
public ?int $quantity = null;