diff --git a/app/Controllers/DashboardController.php b/app/Controllers/DashboardController.php
index 761b700..18880b6 100644
--- a/app/Controllers/DashboardController.php
+++ b/app/Controllers/DashboardController.php
@@ -186,28 +186,24 @@ final class DashboardController
}
/**
- * Suivi des quotas : combien d'agents dépassent leur quota annuel, combien
- * n'ont encore aucune heure planifiée, et le volume restant à affecter.
+ * Suivi des quotas : combien d'agents dépassent leur quota annuel et combien
+ * n'ont encore aucune heure planifiée. Les cumuls tous agents confondus
+ * (consommation globale, reste à affecter) ne sont volontairement pas exposés :
+ * une somme d'agents aux quotités différentes ne décrit aucune situation réelle.
*/
private function quotaPayload(int $year): array
{
$tracking = $this->dashboardModel->quotaTracking($year);
$overCount = 0;
$emptyCount = 0;
- $remainingMinutes = 0;
- $targetMinutes = 0;
- $allocatedMinutes = 0;
foreach ($tracking as $agent) {
- $targetMinutes += $agent['quota_cible_minutes'];
- $allocatedMinutes += $agent['minutes_affectees'];
if ($agent['minutes_restantes'] < 0) {
$overCount++;
}
if ($agent['minutes_affectees'] === 0) {
$emptyCount++;
}
- $remainingMinutes += max(0, $agent['minutes_restantes']);
}
// Tri décroissant sur le taux : les dépassements remontent en tête,
@@ -221,10 +217,6 @@ final class DashboardController
'agent_count' => count($tracking),
'depassement_count' => $overCount,
'sans_heure_count' => $emptyCount,
- 'minutes_restantes' => $remainingMinutes,
- 'minutes_cible' => $targetMinutes,
- 'minutes_affectees' => $allocatedMinutes,
- 'taux_global' => $targetMinutes > 0 ? round(($allocatedMinutes / $targetMinutes) * 100, 1) : 0.0,
'apercu' => array_slice($tracking, 0, self::QUOTA_APERCU_MAX),
];
}
diff --git a/app/Views/layouts/footer.php b/app/Views/layouts/footer.php
index 9993753..568fdd5 100644
--- a/app/Views/layouts/footer.php
+++ b/app/Views/layouts/footer.php
@@ -28,10 +28,10 @@ window.PTA_PAGE_CONFIG = = json_encode([
'params' => $pageConfig,
], JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE) ?>;
-
+
-
+
-
+