Properly detect blocked contingents

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