feat: correct handling of vouchers

This commit is contained in:
Björn Fromme
2025-11-24 10:20:21 +01:00
parent ce1b9ece09
commit f33e55f201
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);