From e64facbd6fbbbf5dbe744826189cfe0dd6469b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Thu, 5 Dec 2019 14:43:07 +0100 Subject: [PATCH] Properly detect blocked contingents --- .../typo3conf/ext/ep_products/Classes/Service/IcalService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php b/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php index c64cf291..c78d3734 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php @@ -80,7 +80,7 @@ class IcalService implements SingletonInterface $percentageBooked = 100; - if ($paxTotal > 0) { + if ($paxTotal > 0 && Contingent::STATUS_BLOCKED !== $event->getStatus()) { $percentageBooked = 100 - round($paxAvaiable / $paxTotal * 100); }