feat: manually create customer access link for offer and update status
addresses #869eea8d7
This commit is contained in:
@@ -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 —
|
||||
|
||||
Reference in New Issue
Block a user