Merge branch 'hotfix/percentage-calculation-fail'
This commit is contained in:
@@ -127,7 +127,7 @@ class AjaxContingentController extends ActionController
|
|||||||
$paxAvaiable = $event->getAvailable();
|
$paxAvaiable = $event->getAvailable();
|
||||||
|
|
||||||
if ($paxTotal > 0) {
|
if ($paxTotal > 0) {
|
||||||
$percentageBooked = round($paxAvaiable / $paxTotal * 100);
|
$percentageBooked = 100 - round($paxAvaiable / $paxTotal * 100);
|
||||||
} else {
|
} else {
|
||||||
$percentageBooked = 100;
|
$percentageBooked = 100;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user