This commit is contained in:
KANE LAZENI 2026-07-27 14:56:36 +00:00
parent d3fb204e87
commit 6980b71fbd
3 changed files with 15 additions and 62 deletions

View File

@ -12,8 +12,7 @@ require_once 'Modele/Garantiesbaremepriseencharge.php';
require_once 'Modele/Detailtarifacte.php';
require_once 'Modele/Feuillemaladie.php';
class ControleurOpticien extends Controleur {
class ControleurOpticien extends Controleur {
private $menuvue;
private $beneficiaire;
private $prescription;
@ -79,7 +78,6 @@ class ControleurOpticien extends Controleur {
$idBeneficiaire = $resultat['idBeneficiaire'];
$_SESSION['p_idBeneficiaire_C'] = $idBeneficiaire;
$codeGarantie = "OPT";
@ -88,38 +86,28 @@ class ControleurOpticien extends Controleur {
$prescription = $this->prescription->getoptique_opt($numeroBonOptique);
$numeroFeuilleMaladie = $prescription['numeroFeuilleMaladie'];
$_SESSION['p_numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie;
$contestation = $this->feuille->getContestation($numeroFeuilleMaladie);
$datePrestation = $this->prescription->getDatePrestation($numeroFeuilleMaladie);
$_SESSION['datePrestation'] = $datePrestation;
$initgarantieBareme = $this->acte->initGarantieBareme($idBeneficiaire, $codeGarantie, $numeroFeuilleMaladie);
$this->garantie->getsourcebaremegarantienew($idBeneficiaire, $codeGarantie, $datePrestation);
$statutGarantie = $this->garantie->getstatutgarantie($idBeneficiaire, $codeGarantie);
$motifStatut = $this->garantie->getlibellemotifdepassement($statutGarantie);
$beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire);
$_SESSION['idOptique'] = $prescription['id'];
//$tauxCouverture = $this->prescription->tauxCouverture();
$tm = $this->detail->ticketModerateurDefinitif($codeGarantie, "", $datePrestation);
$tauxCouverture = (100-$tm)."%";
@ -139,8 +127,6 @@ class ControleurOpticien extends Controleur {
$numeroOptique = $prescription['numeroOptique'];
//var_dump($detailnonlivres); die();
$acte = $this->acte->getActeOptique($datePrestation);
$doubleFoyer = $this->oui_non->getListe();
@ -158,11 +144,7 @@ class ControleurOpticien extends Controleur {
$transition = $this->oui_non->getListe();
$antiBuee = $this->oui_non->getListe();
$filtreBleu = $this->oui_non->getListe();
//$baremes = $this->acte->getActesGarantieOptique();
//$detail_total = $this->acte->getTotalDetailOptique();
$detail_total = $this->acte->getTotalDetailOptiqueTemp();
$numeroEntentePrealable = $this->detailprescription->getNumeroDemandeaccord($numeroBonOptique);

View File

@ -55,19 +55,12 @@ class Optique_temp extends Modele {
$user = $_SESSION['p_login'];
//var_dump($numeroBonOptique, $idSaisie, $user);
//die();
$sql = 'call sp_p_get_optique_temp_opt(?, ?, ?)';
$prescription = $this->executerRequete($sql, array($numeroBonOptique, $idSaisie, $user));
$ligne = $prescription->fetch(PDO::FETCH_ASSOC);
//var_dump($ligne);
$_SESSION['p_numeroOptique_C'] = $ligne['numeroOptique'];
$_SESSION['p_numeroFeuilleMaladie_C'] = $ligne['numeroFeuilleMaladie'];
$_SESSION['p_idFacture_C'] = $ligne['idFacture'];

View File

@ -81,11 +81,14 @@
$idPrestationactes = $this->nettoyer($prescription['idPrestationactes']);
$agePrescription = $this->nettoyer($prescription['agePrescription']);
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
$otpStatus = $this->nettoyer($prescription['otpStatus']);
if($modeSaisieFacture=="1")
{
$bonCaduc = "0";
$otpStatus = -1; // Pas OTP en mode Décompte
}
?>
<!-- nbActesMonture : <?= $nbActesMonture ?> -->
<div id="opticien">
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "frmopticien" >
@ -127,24 +130,6 @@
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
<tbody>
<!--
<tr>
<td width="5%" > <?= _("Souscrip.") ?> </td>
<td width="20%">
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
value="<?= $_SESSION['p_nomClient_C'] ?>" onChange="" disabled >
</td>
<td width="5%" align="center" > <?= _("Adh.") ?> </td>
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_adherent_C']; ?>" disabled style="text-align: center; font-size:9pt;" > </td>
<td width="5%" align="center"> <?= _("Bénéf.") ?> </td>
<td width="25%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_beneficiaire_C']; ?>" disabled style='font-size:9pt;'> </td>
<td width="7%" align="center"> <?= _("Tél Bénéf.") ?> </td>
<td width="13%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_telephonePortableBeneficiaire_C']; ?>" disabled style='font-size:9pt;'> </td>
</tr>
-->
<tr>
<td colspan="8">
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text" id="taux" name="taux"
@ -398,15 +383,19 @@
<?php if($this->nettoyer($prescription['bonCaduc'])=="0") : ?>
<?php if($statutGarantie=="1"):?>
<?php if ($idDemandeAccord == "0") :?>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<td > <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutVerre" style='font-size:12pt;' > <?= _("Sélectionner un acte...") ?> </button> </td>
<td > <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutVerre" style='font-size:12pt;' > <?= _("Sélectionner un acte"). "..." ?> </button> </td>
<td width="2%"></td>
<td width="35%"> <INPUT class="form-control btn btn-info" value="<?= _("GED Optique...") ?>" onclick="javascript:pop_ged_optique();" style='font-size:10pt;' ></td>
</tr>
</tbody>
</table>
<?php endif; ?>
<?php else: ?>
<marquee behavior="scroll" direction="left" scrollamount="15" style="background-color:red;color:white; font-weight:bold; font-size:14pt">
@ -489,7 +478,6 @@
<th style="text-align:center" class="sr-only"> <?= _("Solde Plafond") ?> </th>
<th style="text-align:center;" width="5%"> <?= _("Accord") ?> </th>
<th style="text-align:center;" width="15%"> <?= _("Prix Unitaire") ?> </th>
<!--<th style="text-align:center"> <?= _("Quantité") ?> </th>-->
<th style="text-align:center;background-color:blue;color:white;"> <?= _("Total") ?> </th>
<th style="text-align:center"> <?= _("TM") ?> </th>
<th style="text-align:center"> <?= _("Montant TM") ?> </th>
@ -544,11 +532,9 @@
<td ></td>
<?php endif; ?>
<td align='center' colspan="3">
<!--<INPUT class="form-control" TYPE="text" value="<?= $libelleActe; ?>" disabled style='font-size:10pt;'> -->
<?= $libelleActe; ?>
</td>
<td align='center' width="13%" class="sr-only">
<!--<INPUT class="form-control text-center" TYPE="text" value="<?= $plafond; ?>" disabled style='font-size:10pt;'>-->
<?= $plafond; ?>
</td>
@ -569,8 +555,6 @@
<?php if($ententePrealable=='3' || $ententePrealable=='0' || $ententePrealable=='2' || $ententePrealable=='1'): ?>
<?php if ($idDemandeAccord != "0") :?>
<td align='center' width="10%">
<!--<INPUT class="form-control text-center" id="valeurActe" name="valeurActe" TYPE="text" value="<?= format_N($this->nettoyer($v['valeurActe'])) ?>"
disabled style='font-size:10pt;'>-->
<?= format_N($this->nettoyer($v['valeurActe'])) ?>
</td>
<?php else: ?>
@ -589,26 +573,21 @@
<td align='center' width="10%">
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['fraisReel'])) ?>" disabled style='font-size:10pt;'>-->
<?= format_N($this->nettoyer($v['fraisReel'])) ?>
</td>
<td align='center' width="6%">
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= $this->nettoyer($v['tm']) ?>" disabled style='font-size:10pt;'>-->
<?= $this->nettoyer($v['tm']) ?>
</td>
<td align='center' width="10%">
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['montantTm'])) ?>" disabled style='font-size:10pt;'>-->
<?= format_N($this->nettoyer($v['montantTm'])) ?>
</td>
<td align='center' width="10%">
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['montantArembourser'])) ?>" disabled style='font-size:10pt;'>-->
<?= format_N($this->nettoyer($v['montantArembourser'])) ?>
</td>
<td align='center' width="10%" >
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['depassement'])) ?>" disabled style='font-size:10pt;'>-->
<?= format_N($this->nettoyer($v['depassement'])) ?>
</td>
@ -656,7 +635,6 @@
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?>" >
</div>
<?php else: ?>
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
<H4 align="center" > Age => <?= $this->nettoyer($prescription['agePrescription']) . " "._("jours") . " => " . _("BON CADUC") ?> </H4>