feat: correct handling of vouchers

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent 8e7b8bd75f
commit 85998534fe
7 changed files with 151 additions and 24 deletions
@@ -68,6 +68,11 @@ class Step3Controller extends AbstractController
$form->handleRequest($request);
if (true === $form->isSubmitted() && true === $form->isValid()) {
// Notify user if goodwill vouchers cannot be redeemed for inquiry bookings
if ($bookingCreateDto->isInquiryBooking() && $bookingCreateDto->hasGoodwillVouchers()) {
$this->addFlash('warning', 'Hinweis: Bei Anfragebuchungen können keine Kulanz-Gutscheine eingelöst werden. Kauf- und Aktionsgutscheine werden berücksichtigt.');
}
try {
// Validate booking data with API by submitting an inquiry booking
$inquiryResponse = $this->apiClient->createBookingInquiry($bookingCreateDto);