From 4f70d72e1c4e30d6733050af0f8efb16a1555474 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sun, 4 Jan 2026 16:59:02 +0000 Subject: [PATCH] a --- Controleur/ControleurAjaximporterlisteassure.php | 1 + Modele/Avenant.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Controleur/ControleurAjaximporterlisteassure.php b/Controleur/ControleurAjaximporterlisteassure.php index 188100c..9335db3 100644 --- a/Controleur/ControleurAjaximporterlisteassure.php +++ b/Controleur/ControleurAjaximporterlisteassure.php @@ -2,6 +2,7 @@ require_once 'vendor/autoload.php'; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; + require_once 'Framework/Controleurrequete.php'; // OK require_once 'Modele/Beneficiaire.php'; require_once 'Modele/Avenant.php'; diff --git a/Modele/Avenant.php b/Modele/Avenant.php index e96a690..d09bd73 100644 --- a/Modele/Avenant.php +++ b/Modele/Avenant.php @@ -4,7 +4,8 @@ class Avenant extends Modele { public function getAvenant($idPolice) { - $sql = 'call sp_avenants_police(?)'; + // $sql = 'call sp_avenants_police(?)'; + $sql = 'call sp_avenants_police_client(?)'; $resultat = $this->executerRequete($sql, array($idPolice));