fix : correction calcule des paniers de nuit
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled

This commit is contained in:
2026-03-17 10:34:45 +01:00
parent 2ec3044cb3
commit 625b4af5ba
4 changed files with 7 additions and 7 deletions

View File

@@ -271,7 +271,7 @@ final readonly class WorkHourWeeklySummaryProvider implements ProviderInterface
$present = min(1.0, $morning + $afternoon + $creditedPresence);
}
$hasNightBasket = $nightMinutes > $dayMinutes && $nightMinutes > 0;
$hasNightBasket = ($nightMinutes > $dayMinutes && $nightMinutes > 0) || $nightMinutes >= 240;
if ($hasNightBasket) {
++$weeklyNightBasketCount;
}