This commit is contained in:
KONE SOREL 2026-03-16 20:33:15 +00:00
parent 61953c7d59
commit 2228c60a1c
2 changed files with 5 additions and 4 deletions

View File

@ -20,11 +20,11 @@ class ControleurTrancheage extends Controleur {
public function index()
{
$entetestrancheage = $this->trancheage->geterentetestrancheage('');
//$garant = $this->trancheage->getListeGarant();
$garant = $this->trancheage->getListeGarant();
$_SESSION['successTrancheAge'] = '1';
$_SESSION['messageTrancheAge'] = '';
$this->genererVue(array('entetestrancheage' => $entetestrancheage, 'garant' => $this->garant));
$this->genererVue(array('entetestrancheage' => $entetestrancheage, 'garant' => $garant));
}
}

View File

@ -4,8 +4,9 @@ class Trancheage extends Modele{
public function getListeGarant()
{
$sql = 'SELECT codeGcAssureur AS `code`, libelle FROM gc_assureur
WHERE codeSociete= ? AND actif = 1 ORDER BY libelle';
$sql = 'SELECT codeGcAssureur AS `code`, CONCAT(libelle, " [",codeGcAssureur,"]") AS libelle
FROM gc_assureur WHERE codeSociete= ? AND actif = 1 ORDER BY libelle';
$resultat = $this->executerRequete($sql,array($_SESSION['codeSociete']));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}