feat: manually create customer access link for offer and update status

addresses #869eea8d7
This commit is contained in:
Björn Fromme
2026-08-24 09:19:16 +02:00
parent 7c5f6dd5ef
commit 48db290625
6 changed files with 323 additions and 7 deletions
@@ -534,6 +534,22 @@ class AccommodationBookingService
$this->sendCustomerConfirmationEmail($booking);
}
/**
* Publishes the offer the same way sendOffer() does — same guard, same transition into
* Offen, same issued link — but for staff handing the link to the customer themselves
* instead of through the automated mail. No email side effect.
*/
public function generateAccessLink(AccommodationBooking $booking): void
{
if (!$booking->isDraft() && !$booking->isRequested()) {
return;
}
$booking->setStatus(AccommodationBookingStatus::Open);
$this->issueAccessLink($booking);
$this->entityManager->flush();
}
/**
* Moves a draft to another Gruppenhaus, for the case where the wrong one was picked at
* creation. The chosen Verpflegung and Zusatzleistungen belong to the old house's catalog —