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 <[email protected]>
This commit is contained in:
frommeandClaude Opus 5.5 committed 2026-11-11 11:46:27 +01:00
1 parent 54567d7d79
commit 7575f55930
1 file changed
+6
@@ -494,6 +494,12 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface
continue; 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); $roomType = $this->roomTypeResolver->resolve($code, $label, $pax, $roomMinPax);
if ($pax < 1 && $roomMinPax < 1) { if ($pax < 1 && $roomMinPax < 1) {