feat: show room prices in room assignment form field
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user