This commit is contained in:
KONE SOREL 2025-12-24 12:50:58 +00:00
parent aa7f8574be
commit 441ed4e5f2
2 changed files with 17 additions and 2 deletions

View File

@ -42,6 +42,9 @@ class ControleurAccueil extends Controleur {
];
// Répartition sinistres
$claims = $this->beneficiaire->getClaims();
var_dump($claims);
$claimsLabels = [
"Consultations",
"Pharmacie",

View File

@ -7,11 +7,23 @@ class Synthese extends Modele {
{
$idClient = $_SESSION['idClient_C'];
$sql = 'call sp_c_get_kpis(?)';
$sql = 'call sp_c_dashboard_kpis_by_client(?)';
$resultat = $this->executerRequete($sql, array($idClient));
return $resultat->fetch();
return $resultat->fetchAll();
}
public function getClaims()
{
$idClient = $_SESSION['idClient_C'];
$sql = 'call sp_c_dashboard_claims_by_client(?)';
$resultat = $this->executerRequete($sql, array($idClient));
return $resultat->fetchAll();
}