Properly detect blocked contingents

This commit is contained in:
Björn Fromme
2019-12-05 14:43:07 +01:00
parent cd0fe5c3ad
commit e64facbd6f
@@ -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);
}