From 7575f55930abc281bc73410488005a794e3f05e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 11 Nov 2026 11:46:27 +0100 Subject: [PATCH] fix: rooms MyE&P does not offer for booking show as sold out The product export now flags every room with "bookable". A room that is not bookable (e.g. "Anfrage" with rooms left) is imported with an availability of 0, so it is struck through as "ausgebucht", has no booking button and no longer counts towards places or the "ab" price. Rooms the office sells on request on purpose (code ending in "Anf") are bookable and stay offered. Rows exported without the flag keep the previous logic. Co-Authored-By: Claude Opus 5.5 --- packages/ep_products/Classes/Service/DateImportService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/ep_products/Classes/Service/DateImportService.php b/packages/ep_products/Classes/Service/DateImportService.php index 271562e..496c3c5 100644 --- a/packages/ep_products/Classes/Service/DateImportService.php +++ b/packages/ep_products/Classes/Service/DateImportService.php @@ -494,6 +494,12 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface continue; } + // Rooms MyE&P does not offer for booking are shown as sold out. + // Rows exported before the flag existed keep the previous logic. + if (array_key_exists('bookable', $roomRow) && false === $roomRow['bookable']) { + $available = 0; + } + $roomType = $this->roomTypeResolver->resolve($code, $label, $pax, $roomMinPax); if ($pax < 1 && $roomMinPax < 1) {