diff --git a/Modele/Police.php b/Modele/Police.php index a1c9ecc..eefb8e7 100755 --- a/Modele/Police.php +++ b/Modele/Police.php @@ -102,4 +102,12 @@ class Police extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + public function fn_primes_non_facturees_police($idPolice) + { + $sql = 'select fn_primes_non_facturees_police(?) as nb_non_facturees'; + $resultat = $this->executerRequete($sql, array($idPolice)); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['nb_non_facturees']; + } + } \ No newline at end of file