Properly detect blocked contingents
This commit is contained in:
@@ -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