This commit is contained in:
KONE SOREL 2026-03-26 09:06:53 +00:00
parent 8a72b279af
commit fdc1f19394
3 changed files with 36 additions and 8 deletions

View File

@ -68,6 +68,7 @@ class ControleurFicheadherent extends Controleur {
$dataConsoParLiens = json_encode($tabPrestationsParLiens, JSON_NUMERIC_CHECK);
$dataConsoParGaranties = json_encode($tabConsoParGaranties, JSON_NUMERIC_CHECK);
$nombreGed = $this->adherent->getNombreGedAdherent($idAdherent);
$this->genererVue(array(
'adherent' => $adherent,
@ -78,7 +79,8 @@ class ControleurFicheadherent extends Controleur {
'dataConsoParMois' => $dataConsoParMois,
'dataConsoParLiens' => $dataConsoParLiens,
'dataConsoParGaranties' => $dataConsoParGaranties,
'nbreLienParente' => $nbreLienParente
'nbreLienParente' => $nbreLienParente,
'nombreGed' => $nombreGed
));
}

View File

@ -887,5 +887,17 @@ class Adherent extends Modele {
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getNombreGedAdherent($idAdherent)
{
$source = 'S';
$sql = 'SELECT fn_nombre_ged_adherent(?, ?) as nombreGed;';
$resultat = $this->executerRequete($sql, array($idAdherent, $source));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['nombreGed'];
}
}

View File

@ -23,18 +23,14 @@
$idApporteur = $this->nettoyer($adherent['idApporteur']);
$libelleApporteur = $this->nettoyer($adherent['libelleApporteur']);
$typeecheancier = $this->nettoyer($adherent['typeecheancier']);
if (est_anglophone())
{
$typeecheancier = $this->nettoyer($adherent['typeecheancierEng']);
}
$tauxInteretEcheancier = $this->nettoyer($adherent['tauxInteretEcheancier']);
/*
var_dump(
array(
"dateEffetAdherent_C"=> $_SESSION['dateEffetAdherent_C'],
)
);
*/
?>
<script type="text/javascript">
@ -109,6 +105,24 @@
<input type="text" class="form-control" value="<?= $this->nettoyer($adherent['pays']) ?> / <?= $this->nettoyer($adherent['ville']) ?> / <?= $this->nettoyer($adherent['localite']) ?>" readonly>
</div>
</div>
<div class="col-md-12 form-text">
<?php if($nombreGed > "0"):?>
<i class="fas fa-info-circle text-success"></i>
<span class="text-success me-2">
<?= est_anglophone()
? 'The member has at least one of their documents (identity card, passport, birth certificate, marriage certificate…) archived.'
: "L'adhérent a au moins un de ses documents (carte didentité, passeport, acte de naissance, certificat de mariage...) archivés"; ?>
</span>
<?php else: ?>
<i class="fas fa-info-circle text-danger"></i>
<span class="text-danger me-2">
<?= est_anglophone()
? 'You must necessarily attach at least one document of the member (identity card, passport, birth certificate, marriage certificate...)'
: "Vous devez obligatoirement joindre au moins un document de l'adhérent (carte didentité, passeport, acte de naissance, certificat de mariage...)"; ?>
</span>
<?php endif;?>
<a href="Gedadherent/"><?= _("Ouvrir la GED") ?></a>
</div>
</div>
<?php if ($controlerPlafondAdherent): ?>