diff --git a/src/Form/Model/RoomSelectionDto.php b/src/Form/Model/RoomSelectionDto.php index b73a747..f1b3e62 100644 --- a/src/Form/Model/RoomSelectionDto.php +++ b/src/Form/Model/RoomSelectionDto.php @@ -15,6 +15,8 @@ class RoomSelectionDto public ?float $price = null; + public ?string $status = null; + public ?int $quantity = null; public int $maxQuantity = 100; diff --git a/src/Form/RoomSelectType.php b/src/Form/RoomSelectType.php index 96de6d4..70c4a78 100644 --- a/src/Form/RoomSelectType.php +++ b/src/Form/RoomSelectType.php @@ -2,6 +2,7 @@ namespace App\Form; +use App\BusProNet\Constants; use App\Form\Model\RoomSelectionDto; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\HiddenType; @@ -38,6 +39,7 @@ class RoomSelectType extends AbstractType $view->vars['label_room'] = $data->label; $view->vars['label_price'] = null; + $view->vars['is_inquiry'] = Constants::STATUS_ON_REQUEST === $data->status; if (null !== $data->price) { $formattedPrice = number_format((float) $data->price, 2, ',', '.'); diff --git a/src/Service/BookingService.php b/src/Service/BookingService.php index d35e799..50be9f7 100644 --- a/src/Service/BookingService.php +++ b/src/Service/BookingService.php @@ -258,6 +258,7 @@ class BookingService $selection->id = $room->id; $selection->label = $room->label; $selection->price = $room->price; + $selection->status = $room->status; $selection->maxQuantity = $room->available; $selection->capacity = $room->minPax; $selection->quantity = $roomsIdsAndQuantities[$room->id] ?? 0; diff --git a/templates/booking/_summary.html.twig b/templates/booking/_summary.html.twig index 1011622..6a8b3b3 100644 --- a/templates/booking/_summary.html.twig +++ b/templates/booking/_summary.html.twig @@ -61,13 +61,6 @@ {% include 'booking/_summary_hotel.html.twig' %} - {# Inquiry booking notification #} - {% if bookingCreateDto is defined and bookingCreateDto.isInquiryBooking() %} -