Merge branch 'hotfix/percentage-calculation-fail'

This commit is contained in:
Björn Fromme
2019-12-04 13:32:37 +01:00
@@ -127,7 +127,7 @@ class AjaxContingentController extends ActionController
$paxAvaiable = $event->getAvailable();
if ($paxTotal > 0) {
$percentageBooked = round($paxAvaiable / $paxTotal * 100);
$percentageBooked = 100 - round($paxAvaiable / $paxTotal * 100);
} else {
$percentageBooked = 100;
}