diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php index 7e710c75..97c03843 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php @@ -369,11 +369,11 @@ class DateImportService implements SingletonInterface 'important' => $product['important'], ]; - $skiPass = $this->parseSelectionGroup($xmlDate, 'Leistungen Skipass'); $servicesBoard = $this->parseSelectionGroup($xmlDate, 'Leistungen Verpflegung'); + $skiPass = $this->parseSelectionGroup($xmlDate, 'Leistungen Skipass'); $servicesIncluded = $this->parseSelectionGroup($xmlDate, 'Leistungen Sonstige'); - $date['services_included'] = serialize($this->combineServices($servicesIncluded, $skiPass, $servicesBoard)); + $date['services_included'] = serialize($this->combineServices($servicesBoard, $skiPass, $servicesIncluded)); if ($servicesBoard) { $date['board'] = reset($servicesBoard); diff --git a/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php b/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php index 144fb232..c5af9f8a 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php @@ -128,7 +128,7 @@ class IcalService implements SingletonInterface foreach ($events as $event) { /** @var Contingent $event */ - if (null === $item && Contingent::STATUS_BLOCKED === $event->getStatus()) { + if (null === $item && (Contingent::STATUS_BLOCKED === $event->getStatus() || Contingent::STATUS_ONREQUEST === $event->getStatus())) { $item = [ 'from' => $event->getBegin(), ]; @@ -162,6 +162,10 @@ class IcalService implements SingletonInterface */ protected function addOccupancyItem( array $item): void { + if (0 === $item['occupancy']) { + return; + } + $summary = sprintf('Part-occupied:%d', $item['occupancy']); try { diff --git a/public/typo3conf/ext/ep_products/Configuration/FlexForms/flexform_hotel_detail_event.xml b/public/typo3conf/ext/ep_products/Configuration/FlexForms/flexform_hotel_detail_event.xml index 3a2262b1..5a6878ff 100644 --- a/public/typo3conf/ext/ep_products/Configuration/FlexForms/flexform_hotel_detail_event.xml +++ b/public/typo3conf/ext/ep_products/Configuration/FlexForms/flexform_hotel_detail_event.xml @@ -18,7 +18,7 @@ select selectSingle tx_epproducts_domain_model_product - AND tx_epproducts_domain_model_product.hidden = 0 AND tx_epproducts_domain_model_product.deleted = 0 ORDER BY tx_epproducts_domain_model_product.name + AND tx_epproducts_domain_model_product.hidden = 0 AND tx_epproducts_domain_model_product.deleted = 0 ORDER BY tx_epproducts_domain_model_product.name_internal 1 1 diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html index 1c7d3866..d283fb6c 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html @@ -6,6 +6,17 @@ + + + + + + + + + + +