feat: accommodation booking type and status as dedicated properties
This commit is contained in:
1 parent
2cfa87f44b
commit
aa8fa5c1b2
22 files changed
+218
-151
No files matched your search
@@ -93,7 +93,7 @@ class OfferController extends AbstractController
|
||||
return $this->redirectToOfferPage($request, $uuid);
|
||||
}
|
||||
|
||||
if (!$booking->isInquiry()) {
|
||||
if (!$booking->isInquiry() || !$booking->isOpen()) {
|
||||
return $this->redirectToOfferPage($request, $uuid);
|
||||
}
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ class Step4Controller extends AbstractAccommodationController
|
||||
{
|
||||
$prices = $this->bookingService->loadPrices($dto, $accommodation);
|
||||
$booking = $this->bookingService->finalizeBooking($dto, $accommodation, $prices, $services);
|
||||
$this->addFlash('groups_booking_result', $booking->getStatus()->value);
|
||||
$this->addFlash('groups_booking_result', $booking->getType()->value);
|
||||
$this->sessionManager->clear($request);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user