This commit is contained in:
KANE LAZENI 2026-07-22 09:50:37 +00:00
parent eaea80844e
commit 518dfa0902
3 changed files with 33 additions and 1 deletions

View File

@ -44,11 +44,14 @@ class ControleurTraitementproformahospitalisation extends Controleur {
$siRefus = $this->examen->siRefus($idProforma);
$hospit_total = $this->examen->cumulProformaHospitalisation($idProforma);
$corrigerPrixProforma = $this->examen->get_corriger_prix_roforma();
$ajoutActeProforma = $this->examen->get_ajout_acte_proforma();
$this->genererVue(array('idProforma' => $idProforma, 'motifexamens' => $motifexamens, 'examen' => $examen,
'detailexamens' => $detailexamens, 'situationBeneficiaire' => $situationBeneficiaire, 'choix' => $choix,
'hospit_total' => $hospit_total, 'accorderTout' => $accorderTout, 'refuserTout' => $refuserTout,
'siRefus' => $siRefus));
'siRefus' => $siRefus, 'corrigerPrixProforma' => $corrigerPrixProforma, 'ajoutActeProforma' => $ajoutActeProforma));
}

View File

@ -544,5 +544,26 @@ class Examen extends Modele {
$this->executerRequete($sql, array($codeSociete, $numeroFeuilleMaladie, $user, $nomConsommable,
$prixconsommable, $quantiteconsommable, $idProforma, $idSaisie));
}
public function get_corriger_prix_roforma()
{
$sql = 'SELECT fn_corriger_prix_proforma() AS corrigerPrixProforma;';
$resultat = $this->executerRequete($sql)->fetch(PDO::FETCH_ASSOC);
$corrigerPrixProforma = $resultat['corrigerPrixProforma'];
return $corrigerPrixProforma;
}
public function get_ajout_acte_proforma()
{
$sql = 'SELECT fn_ajout_acte_proforma() AS ajoutActeProforma;';
$resultat = $this->executerRequete($sql)->fetch(PDO::FETCH_ASSOC);
$ajoutActeProforma = $resultat['ajoutActeProforma'];
return $ajoutActeProforma;
}
}

View File

@ -22,6 +22,14 @@ foreach ($motifexamens as $motifexamen):
<?php endif;
$demandeTraite = $this->nettoyer($examen['demandeTraite']);
var_dump(
array(
"corrigerPrixProforma" => $corrigerPrixProforma,
"ajoutActeProforma" => $ajoutActeProforma,
)
);
?>
<legend class="modal-title text-center"><?= _("TRAITEMENT PROFORMA HOSPITALISATION CHIRURGICALE");?></legend>