feat: accommodation booking type and status as dedicated properties

This commit is contained in:
Björn Fromme committed 2026-08-06 08:52:09 +02:00
1 parent 2cfa87f44b
commit aa8fa5c1b2
22 files changed
+218 -151

No files matched your search

@@ -127,9 +127,9 @@ class EditController extends AbstractController
$this->entityManager->persist($booking);
$this->entityManager->flush();
// Entering Anfrage or Buchung is what the customer needs to hear about: the offer
// Entering Offen or Bestätigt is what the customer needs to hear about: the offer
// becomes viewable, or the booking is confirmed. Entwurf and Absage stay silent.
$notifiableStatuses = [AccommodationBookingStatus::Inquiry, AccommodationBookingStatus::Booking];
$notifiableStatuses = [AccommodationBookingStatus::Open, AccommodationBookingStatus::Accepted];
if ($previousStatus !== $booking->getStatus() && in_array($booking->getStatus(), $notifiableStatuses, true)) {
$this->bookingService->issueAccessLink($booking);
$this->bookingService->sendCustomerConfirmationEmail($booking);