This commit is contained in:
2026-04-29 10:01:26 +00:00
parent 9e29c32536
commit 5fceb9110f
5 changed files with 44 additions and 7 deletions

View File

@@ -981,4 +981,14 @@ class Police extends Modele {
return $liste->fetch(PDO::FETCH_ASSOC);
}
public function get_limite_consommation_police($idPolice)
{
$sql = 'SELECT fn_limite_consommation_police(?) AS limite_consommation';
$resultat = $this->executerRequete($sql, array($idPolice));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['limite_consommation'];
}
}