From 256500c7bed57e5ca89addfff04bb2417578a1bd Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 7 Jul 2023 11:30:31 +0200 Subject: [PATCH] inverted dropdown view control --- httpdocs/src/Service/CalculatorService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpdocs/src/Service/CalculatorService.php b/httpdocs/src/Service/CalculatorService.php index 51048ef..9f8b2d5 100644 --- a/httpdocs/src/Service/CalculatorService.php +++ b/httpdocs/src/Service/CalculatorService.php @@ -30,7 +30,7 @@ class CalculatorService $riskFactor = Utils::$riskPoints[$riskPoints]['factor']; $recCycleMaintenance = $asset->getCycleMonthsMax(); - if ((int)($params['maintenance']) === 1 || ((int)$params['check']) === 1 ) { + if ((int)($params['maintenance']) === 1 || ((int)$params['check']) === 0 ) { $recCycleMaintenance = (int) ($asset->getCycleMonthsMax() * $riskFactor); if ($recCycleMaintenance < $asset->getCycleMonthsMin()) { $recCycleMaintenance = $asset->getCycleMonthsMin();