feat: show room prices in room assignment form field

This commit is contained in:
Björn Fromme
2026-03-16 12:00:55 +01:00
parent 5b75a165ce
commit e1bfe9b93c
22 changed files with 193 additions and 92 deletions
+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;