Properly detect blocked contingents
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user