feat: show room prices in room assignment form field

This commit is contained in:
Björn Fromme
2025-12-09 12:55:00 +01:00
parent 9c6860ecc6
commit 31f414b4d8
22 changed files with 193 additions and 92 deletions
@@ -152,9 +152,9 @@ class BookingDataProcessor
$room = $availableRooms[$bookingRoom->id] ?? null;
if (null !== $room && null !== $bookingRoom->totalCount && $bookingRoom->totalCount > 0) {
$roomSelection = new RoomSelectionDto();
$roomSelection->roomId = $bookingRoom->id;
$roomSelection->roomLabel = $room->label;
$roomSelection->roomPrice = $room->price;
$roomSelection->id = $bookingRoom->id;
$roomSelection->label = $room->label;
$roomSelection->price = $room->price;
$roomSelection->quantity = $bookingRoom->totalCount; // Actual quantity from booking XML (anzahl)
$dto->roomSelections[] = $roomSelection;
}
@@ -451,7 +451,7 @@ class BookingPayloadBuilder
$roomQuantities = [];
foreach ($bookingDto->roomSelections as $selection) {
if ($selection->quantity > 0) {
$roomQuantities[$selection->roomId] = $selection->quantity;
$roomQuantities[$selection->id] = $selection->quantity;
}
}