a
This commit is contained in:
parent
644d593b4b
commit
f6d7c36788
|
|
@ -43,16 +43,13 @@ class ControleurAccueilassure extends Controleur {
|
|||
|
||||
$idBeneficiaireAdherent = $this->beneficiaire->getIdBeneficiaireAdherent($idAdherent);
|
||||
|
||||
// $idBeneficiaire = (isset($_SESSION['idBeneficiaire_C']) && $_SESSION['idBeneficiaire_C'] > "0") ? (int)$_SESSION['idBeneficiaire_C'] : $idBeneficiaireAdherent;
|
||||
// KANE 24/03/2025
|
||||
$idBeneficiaire = $idBeneficiaireAdherent;
|
||||
$_SESSION['idBeneficiaire_C'] = $idBeneficiaireAdherent;
|
||||
|
||||
$dateJour = date('Y-m-d');
|
||||
|
||||
$beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire);
|
||||
|
||||
|
||||
|
||||
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
|
||||
$beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent, $dateJour);
|
||||
|
||||
|
|
|
|||
|
|
@ -399,12 +399,19 @@ class Beneficiaire extends Modele {
|
|||
|
||||
|
||||
public function getIdBeneficiaireAdherent($idAdherent) {
|
||||
/*
|
||||
$sql = 'SELECT idBeneficiaire FROM vw_p_beneficiaire
|
||||
WHERE (codeSociete=?) AND (idAdherent=?)
|
||||
AND (codeLienParente="A");';
|
||||
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $idAdherent));
|
||||
|
||||
*/
|
||||
|
||||
$sql = 'SELECT id AS idBeneficiaire FROM beneficiaire WHERE (idAdherent=?) AND (codeLienParente="A");';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idAdherent));
|
||||
|
||||
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
return $ligne['idBeneficiaire'];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ class Garantieadherent extends Modele {
|
|||
|
||||
public function getGarantieBeneficiaire($idBeneficiaire)
|
||||
{
|
||||
|
||||
$sql = 'call sp_afficher_garantiebeneficiaire(?);';
|
||||
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idBeneficiaire));
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user