This commit is contained in:
KANE LAZENI 2026-03-10 18:34:30 +00:00
parent 576458688b
commit 2e7f483ef3
4 changed files with 29 additions and 89 deletions

View File

@ -19,6 +19,8 @@ class ControleurAjaxprixseance extends Controleur {
$codeActe = $this->requete->getParametreFormulaire("codeActe");
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
$dureeTraitement = $this->requete->getParametreFormulaire("dureeTraitement", "numerique");
// 10/03/2026 => prix modifiable
$prixSaisi = $this->requete->getParametreFormulaire("prixSaisi", "numerique");
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
@ -34,8 +36,12 @@ class ControleurAjaxprixseance extends Controleur {
$baremesolde = $this->garantie->getbaremesolde($idBeneficiaire,$codeActe,$codeGarantie,$numeroFeuilleMaladie);
// 10/03/2026 prise en compte des prix modifiable
$infosActe = $this->acte->get_infos_acte($codeActe, $datePrestation, 0);
// $infosActe = $this->acte->get_infos_acte($codeActe, $datePrestation, 0);
$infosActe = $this->acte->get_infos_acte($codeActe, $datePrestation, $prixSaisi);
// var_dump($infosActe);
// exit;
$prixTarif = $infosActe['prixTarif'];
$prixBase = $infosActe['prixBase'];
$prixActe = $prixTarif;

View File

@ -162,9 +162,7 @@
</button>
<input class="sr-only" type="number" id="prixModifiable" name="prixModifiable" value="<?= $prixActe ?>" >
<?php endif; ?>
</td>
<td width="15%" align="center" style="font-weight:bold;"> <?= _("Part assuré") ?> </td>

View File

@ -14,21 +14,12 @@
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<!--
<tr>
<td class="required" style="font-size:10pt; border: 0; background: transparent; text-align:center;"> <?= _("Durée Traitement (en jour)") ?> </td>
<td colspan="5"> <input class="form-control" style="text-align: center; font-size:10pt;" type="number" value="<?= $dureeTraitement ?>" required AUTOCOMPLETE="OFF" id="dureeTraitement" name="dureeTraitement" autofocus></td>
</tr>
-->
<tr>
<td width="16%" >
<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align:center;" type="text" value="<?= _("Prix Unitaire") ?>" readonly>
<!--<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align:center;" type="text" value="<?= _("Base Remb.") ?>" readonly>-->
</td>
<td width="20%" >
<input id="prixActe_info" name="prixActe_info" class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;" type="text" value="<?= format_N($prixActe) ?>" readonly>
<!--<input id="prixBase_info" name="prixBase_info" class="form-control" style="background-color:blue;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($prixBase) ?>" readonly>-->
</td>
<td width="15%" style="font-size:10pt; border: 0; background: transparent; text-align:center;"> <?= _("Nbre Séance") ?> </td>
@ -40,23 +31,9 @@
<td width="10%" style="font-size:10pt; border: 0; background: transparent; text-align:center;"> Total </td>
<td width="25%" >
<input id="fraisReelBase_info" name="fraisReel_info" class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="<?= format_N($fraisReel) ?>" readonly >
<!--<input id="fraisReelBase_info" name="fraisReel_info"class="form-control" style="background-color:blue;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($fraisReelBase) ?>" readonly >-->
</td>
</tr>
<!--
<tr>
<td align="center"> <?= _("Montant TM") ?> </td>
<td> <input id="montantTm_info" name="montantTm_info" class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="<?= format_N($montantTm) ?>" readonly ></td>
<td align="center"> <?= _("A Rembourser") ?> </td>
<td > <input id="aRembourser_info" name="aRembourser_info" class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="<?= format_N($aRembourser) ?>" readonly ></td>
<td align="center"> <?= _("Dépassement") ?> </td>
<td> <input id="depassement_info" name="depassement_info" class="form-control" style="background-color:red;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($depassement) ?>" readonly ></td>
</tr>
-->
<tr>
<td colspan="6">
<?php if ($acteExclu=="1"): ?>
@ -78,5 +55,4 @@
<H4> <?= _("NON COUVERT !") ?> </H4>
</div>
<?php endif; ?>
</div>
</div>

View File

@ -44,15 +44,17 @@
$dureeTraitement = $seance['dureeTraitement'];
//var_dump($numeroBonKine);
$baremeExiste = $_SESSION['p_bareme']['baremeExiste'];
$bareme_actif = $_SESSION['p_bareme']['bareme_actif'];
$bareme_ageMinimum = $_SESSION['p_bareme']['bareme_ageMinimum'];
$bareme_ageMaximum = $_SESSION['p_bareme']['bareme_ageMaximum'];
$bareme_codeTypeRemboursement = $_SESSION['p_bareme']['gar_codeTypeRemboursement'];
$ageBeneficiaire = $_SESSION['p_ageBeneficiaire_C'];
echo "prixActeModifiable => $prixActeModifiable";
$valeurActe = $this->nettoyer($seance['valeurActe']);
$prixActe = $valeurActe;
echo "valeurActe => $valeurActe ; prixActe => $prixActe";
?>
<script type="text/javascript">
@ -89,24 +91,6 @@
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
<tbody>
<!--
<tr>
<td width="5%" > <?= _("Souscripteur") ?> </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="" readonly >
</td>
<td width="5%" align="center" > <?= _("Adhérent") ?> </td>
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_adherent_C']; ?>" readonly style="text-align: center; font-size:9pt;" > </td>
<td width="5%" align="center"> <?= _("Patient") ?> </td>
<td width="25%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_beneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
<td width="7%" align="center"> <?= _("Tél Patient") ?> </td>
<td width="13%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_telephonePortableBeneficiaire_C']; ?>" readonly 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="nomClient" name="nomClient"
@ -135,7 +119,6 @@
<?php if ($numeroBonKine>"0" or $facture=="1") : ?>
<INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($seance['medecinPrescription']) ?>" readonly style='font-size:10pt;'>
<?php else: ?>
<!--<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheMedecin" style='font-size:10pt;' ><span id="nomMedecin" name="nomMedecin"> <?= $this->nettoyer($seance['medecinPrescription']) ?> </span></button>-->
<SELECT id="medecinPrescription" class="form-control selectpicker" data-live-search="true" NAME="medecinPrescription" disabled onChange="" style='font-size:10pt;' >
<?php liste_options($medecins,$seance['codeMedecin'],true); ?>
</SELECT>
@ -144,26 +127,8 @@
<td align="center"> <?= _("No Bon") ?> </td>
<td width="10%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue !important;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonKine ?>" readonly > </td>
</tr>
<!--
<tr>
<td > <?= _("Bons Disponible") ?> </td>
<td > <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsOrd ?>" readonly > </td>
<td align="center"> <?= _("No Bon") ?> </td>
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue !important;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonKine ?>" readonly > </td>
<td align="center" > <?= _("Gestion") ?> </td>
<td>
<?php if($badcodeGestionBon=="1") : ?>
<input class="form-control" style="text-align: center; font-size:10pt; background-color: red;color:white;" Value="<?= _("INCONNU") ?>" readonly >
<?php else: ?>
<input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $typeGestionbon ?>" readonly >
<?php endif; ?>
</td>
</tr>
-->
<tr>
<?php if($facture=="1" || $bonCaduc=="1"): ?>
<td width="15%" class="required"> <?= _("Renseignement Clinique") ?> </td>
@ -229,12 +194,6 @@
<td colspan="7"> <?= _("SEANCE") ?> </td>
<?php endif; ?>
</td>
<!--
<td align="center"><?= _("Durée (J)") ?></td>
<td>
<input style="font-size:10pt;" class="form-control" value="<?= $dureeTraitement ?>" type="text" disabled>
</td>
-->
</tr>
@ -269,12 +228,7 @@
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
<H4> <?= _("Dejà facturée !") ?> </H4>
</div>
<?php elseif($bonCaduc!="1"): ?>
<!--<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerprescriptionseance();" style='font-size:10pt;' >-->
<?php else: ?>
<!--<input id="btn_enreg" name="btn_enreg" disabled class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" style='font-size:10pt;' >-->
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
@ -553,19 +507,33 @@
<input class="sr-only" type="number" id="fraisReelBase" name="fraisReelBase" value="<?= $this->nettoyer($seance['fraisReelBase']) ?>" >
<input class="sr-only" type="number" id="depassement" name="depassement" value="<?= $this->nettoyer($seance['depassement']) ?>" >
<input class="sr-only" type="text" id="ententePrealableSea" name="ententePrealableSea" value="<?= $this->nettoyer($seance['ententePrealable']) ?>" >
<input class="sr-only" type="number" id="prixSaisi" name="prixSaisi" value="<?= $this->nettoyer($seance['valeurActe']) ?>" >
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="16%" >
<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align: center; " type="text" value="<?= _("Prix Unitaire") ?>" readonly>
<!--<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align: center; " type="text" value="<?= _("Base Remb.") ?>" readonly>-->
</td>
<td width="20%" >
<input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['valeurActe'])) ?>" readonly>
<!--<input class="form-control" style="background-color:blue;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['prixBase'])) ?>" readonly>-->
</td>
<td width="20%" >
<?php if($prixActeModifiable=="1") : ?>
<input class="form-control" type="number" id="prixModifiable" name="prixModifiable" value="<?= $prixActe ?>" onchange="modifier_prix_acte();" >
<input class="sr-only" type="text" value="<?= format_N($this->nettoyer($seance['valeurActe'])) ?>" readonly>
<?php else: ?>
<button id="prixActe_info" name="prixActe_info" TYPE="button" class="form-control span_link" style="text-align: center; font-size:10pt; font-weight:bold;" title="<?= _("Voir le tarif appliqué") ?>" onclick='javascript:tarif_applique("<?=$tarif ?>");'>
<i class="fa fa-hand-pointer-o pull-right" ></i>
<?= format_N($prixActe) ?>
</button>
<input class="sr-only" type="number" id="prixModifiable" name="prixModifiable" value="<?= $prixActe ?>" >
<?php endif; ?>
</td>
<td width="15%" align="center" > <?= _("Nombre Séance") ?> </td>
<td width="20%" >
<?php
@ -588,18 +556,10 @@
<td width="10%" align="center" > Total </td>
<td width="25%" >
<input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['fraisReel'])) ?>" readonly >
<!--<input class="form-control" style="background-color:blue;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['fraisReelBase'])) ?>" readonly >-->
</td>
</tr>
<!--
<tr>
<td align="center"> <?= _("Durée Traitement (En jour)") ?> </td>
<td colspan="5"> <input class="form-control" style="text-align: center; font-size:10pt;" type="text" value="" ></td>
</tr>
-->
<tr>
<td colspan="6">
<?php if ($bonCaduc!="1"): ?>