diff --git a/Controleur/ControleurAjaximporterlisteassure.php b/Controleur/ControleurAjaximporterlisteassure.php
index e30a649..50cdaf7 100644
--- a/Controleur/ControleurAjaximporterlisteassure.php
+++ b/Controleur/ControleurAjaximporterlisteassure.php
@@ -26,7 +26,8 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
public function initimportermodele()
{
$idPolice = $_SESSION['idPolice_C'];
- $avenants = $this->avenant->getAvenant($idPolice);
+ // $avenants = $this->avenant->getAvenant($idPolice);
+ $avenants = $this->avenant->getAvenantIncorporation($idPolice);
$this->genererVueAjax(array('avenants' => $avenants));
}
diff --git a/Modele/Avenant.php b/Modele/Avenant.php
index d09bd73..53ab7bc 100644
--- a/Modele/Avenant.php
+++ b/Modele/Avenant.php
@@ -85,4 +85,15 @@ class Avenant extends Modele {
$liste = $this->executerRequete($sql, array($idPolice));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
+
+ public function getAvenantIncorporation($idPolice)
+ {
+ $sql = 'call sp_avenants_police_client(?)';
+
+ $resultat = $this->executerRequete($sql, array($idPolice));
+
+ return $resultat->fetchAll(PDO::FETCH_ASSOC);
+ }
+
+
}
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index c34099b..9662d19 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
-
+