Ajaxfichepolice améliorée
This commit is contained in:
@@ -14,4 +14,22 @@ class Quittance extends Modele {
|
||||
|
||||
}
|
||||
|
||||
public function getQuittancesPolicePeriode($idPolice, $debut, $fin)
|
||||
{
|
||||
$sql = 'call sp_emissions_police_periode(?, ?, ?)';
|
||||
|
||||
$quittances = $this->executerRequete($sql, array($idPolice, $debut, $fin));
|
||||
|
||||
return $quittances->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getTotalQuittancePeriode($idPolice, $debut, $fin)
|
||||
{
|
||||
$sql = 'call sp_emissions_total_police_periode(?, ?, ?)';
|
||||
|
||||
$totalquittance = $this->executerRequete($sql, array($idPolice, $debut, $fin));
|
||||
|
||||
return $totalquittance->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user