This commit is contained in:
KANE LAZENI 2026-03-13 23:40:44 +00:00
parent e6f4c4bccb
commit 2f93922091
7 changed files with 162 additions and 157 deletions

View File

@ -227,7 +227,7 @@ class ControleurKine extends Controleur {
'nbBonsCons' => $nbBonsCons, 'codeGestionBon' => $codeGestionBon, 'typeGestionbon' => $typeGestionbon,
'tauxCouverture' => $tauxCouverture, 'totalseances' => $totalseances, 'compteSeance' => $compteSeance,
'compteSeancePrestataire' => $compteSeancePrestataire, 'geds' => $geds, 'msgErreurGed' => $msgErreurGed,
'contestation' => $contestation));
'contestation' => $contestation, 'prixActeModifiable' => $prixActeModifiable));
}
}
}

View File

@ -166,6 +166,9 @@ class ControleurKinecso extends Controleur {
unset($_FILES['fichier_upload']);
$geds = $this->ged->getgedseances();
$prixActeModifiable = $this->acte->getPrixActeModifiable();
$_SESSION['p_prixActeModifiable'] = $prixActeModifiable;
if($numeroBonKine=="-1")
{
@ -228,7 +231,7 @@ class ControleurKinecso extends Controleur {
'numeroBonKineSearch' => $numeroBonKineSearch, 'nbBonsCons' => $nbBonsCons, 'tauxCouverture' => $tauxCouverture,
'codeGestionBon' => $codeGestionBon, 'typeGestionbon' => $typeGestionbon, 'totalseances' => $totalseances,
'geds' => $geds, 'msgErreurGed' => $msgErreurGed, 'compteSeance' => $compteSeance, 'compteSeancePrestataire' => $compteSeancePrestataire,
'contestation' => $contestation));
'contestation' => $contestation, 'prixActeModifiable' => $prixActeModifiable));
}
}
}

View File

@ -11677,8 +11677,6 @@ function ajaxprixseance()
donnees = 'codeActe='+codeActe+'&quantite='+quantite+'&dureeTraitement='+dureeTraitement;
donnees += '&prixSaisi='+prixSaisi;
// alert("ajaxprixseance => "+donnees);
$("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
$.ajax({
@ -12263,7 +12261,6 @@ function afficher_facturation_seance()
$("#btn_close_pop_session").click();
$("#div_facturation_seance").html(data);
$("#quantiteSeance").focus();
//ajaxprixseancesea();
},
complete: function(data) {
$("#numeroBonSeance_C").val($("#numeroBonSeance_info").val());
@ -12282,6 +12279,7 @@ function ajaxprixseancesea()
$("#totalActe_info").val("0");
$("#montantTm_info").val("0");
$("#aRembourser_info").val("0");
$("#depassement_info").val("0");
v_msg="Veuillez s\u00e9lectionner un act!";
v_msgEng="Please select an act!";
@ -12298,16 +12296,7 @@ function ajaxprixseancesea()
if(quantite==0)
{
$("#quantiteSeance").val(1);
quantite = 1;
/*
div_quantite.focus();
v_msg="Veuillez saisir le nombre de s\u00e9ances!";
v_msgEng="Please enter the number of sessions!";
alert_ebene(v_msg, v_msgEng);
return;
*/
}
nbRestant = $("#nbRestant").val();
@ -12315,17 +12304,19 @@ function ajaxprixseancesea()
if(quantite>nbRestant)
{
// div_quantite.focus();
v_msg="Vous ne pouvez pas d\u00e9passer "+nbRestant+" s\u00e9ances!";
v_msgEng="Only "+nbRestant+" sessions are possible!";
alert_ebene(v_msg, v_msgEng);
// return;
quantite = 0;
}
prixSaisi = $("#prixSaisi").val();
donnees = 'codeActe='+codeActe+'&quantite='+quantite;
donnees += '&prixSaisi='+prixSaisi;
alert("ajaxprixseancesea => "+donnees);
return;
$("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
@ -28610,8 +28601,6 @@ function modifier_prix_seance() {
prixModifiable = $('#prixModifiable').val();
$('#prixSaisi').val(prixModifiable);
$('#prixActe').val(prixModifiable);
prixModifiable = $('#prixModifiable').val();
prixSaisi = $('#prixSaisi').val();
ajaxprixseance();
}
@ -28826,3 +28815,14 @@ function no_presciption()
});
}
}
function modifier_prix_seance_kine() {
alert("modifier_prix_seance_kine");
return;
prixModifiable = $('#prixModifiable').val();
$('#prixSaisi').val(prixModifiable);
$('#prixActe').val(prixModifiable);
ajaxprixseancesea();
}

View File

@ -1,135 +1,143 @@
<div id="div_facturation_seance">
<?php
$facture = $this->nettoyer($prescription['facture']);
$nbRestantOld = $this->nettoyer($prescription['nbRestantOld']);
$codeActeSeance = $this->nettoyer($prescription['codeActeSeance']);
$numeroBonSeance = $this->nettoyer($prescription['numeroBonSeance']);
$_SESSION['p_numeroBonSeance_C'] = $numeroBonSeance;
$codeGestionBon = $this->nettoyer($prescription['codeGestionBon']);
if( isset($_SESSION['p_actesHarmonises']) && ($_SESSION['p_actesHarmonises']=="1") )
{
$actesHarmonises = true;
}
else
{
$actesHarmonises = false;
}
$codeMotifDepassement = $this->nettoyer($prescription['codeMotifDepassement']);
<?php
$facture = $this->nettoyer($prescription['facture']);
$nbRestantOld = $this->nettoyer($prescription['nbRestantOld']);
$codeActeSeance = $this->nettoyer($prescription['codeActeSeance']);
$numeroBonSeance = $this->nettoyer($prescription['numeroBonSeance']);
$_SESSION['p_numeroBonSeance_C'] = $numeroBonSeance;
$motif = $this->nettoyer($prescription['motif']);
$motifEng = $this->nettoyer($prescription['motifEng']);
$codeGestionBon = $this->nettoyer($prescription['codeGestionBon']);
if( isset($_SESSION['p_actesHarmonises']) && ($_SESSION['p_actesHarmonises']=="1") )
{
$actesHarmonises = true;
}
else
{
$actesHarmonises = false;
}
$tarif = $this->nettoyer($prescription['tarif']);
$codeMotifDepassement = $this->nettoyer($prescription['codeMotifDepassement']);
$motif = $this->nettoyer($prescription['motif']);
$motifEng = $this->nettoyer($prescription['motifEng']);
$tarif = $this->nettoyer($prescription['tarif']);
$libelleMotif = $motifStatut['libelle'];
$libelleMotif = $motifStatut['libelle'];
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleMotif = $motifStatut['libelleEng'];
}
$codeActe = $prescription['codeActePrescription'];
?>
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleMotif = $motifStatut['libelleEng'];
}
$codeActe = $prescription['codeActePrescription'];
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
<input class="sr-only" type="number" id="numeroBonSeance_info" name="numeroBonSeance_info" value="<?= $numeroBonSeance ?>" >
<input class="sr-only" type="text" id="codeActe" name="codeActe" value="<?= $codeActe ?>" >
$valeurActe = $this->nettoyer($prescription['valeurActeSeance']);
<?php if($codeGestionBon=="0") : ?>
<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popInitSession" style='font-size:10pt;' > <?= _("Modifier le bon...") ?> </button>
<?php endif; ?>
$prixActe = $valeurActe;
?>
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="SEA">
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
<input class="sr-only" type="number" id="numeroBonSeance_info" name="numeroBonSeance_info" value="<?= $numeroBonSeance ?>" >
<input class="sr-only" type="text" id="codeActe" name="codeActe" value="<?= $codeActe ?>" >
<div id="infosacte" style='font-size:10pt;'>
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
<input class="sr-only" type="number" id="valeurActe" name="valeurActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
<input class="sr-only" type="number" id="aRembourser" name="aRembourser" value="<?= $this->nettoyer($prescription['montantArembourserSeance']) ?>" >
<input class="sr-only" type="number" id="totalActe" name="totalActe" value="<?= $this->nettoyer($prescription['fraisReelSeance']) ?>" >
<input class="sr-only" type="number" id="fraisRetenuSeance" name="fraisRetenuSeance" value="<?= $this->nettoyer($prescription['fraisRetenuSeance']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($prescription['fraisReelSeance']) ?>" >
<input class="sr-only" type="number" id="montantTm" name="montantTm" value="<?= $this->nettoyer($prescription['montantTmSeance']) ?>" >
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelSeance'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmSeance'])) ?>" >
<?php if($codeGestionBon=="0") : ?>
<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popInitSession" style='font-size:10pt;' > <?= _("Modifier le bon...") ?> </button>
<?php endif; ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" align="center" > <?= _("Date Séance") ?> </td>
<td align="center">
<INPUT class="form-control" TYPE="text" Value="<?= $_SESSION['p_dateFactureReellefr_C'] ?>" readonly style='font-size:10pt; text-align:center;' >
</td>
<td align="center" width="15%">
<?= _("Motif Dépassement") ?>
</td>
<?php if($codeMotifDepassement!=''): ?>
<td align="center" width="15%">
<button style="width:100%" type="button" class="btn btn-info" title="Voir le motif du dépassement..." onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td width="15%">
<INPUT class="form-control" TYPE="text" Value="" readonly style='font-size:10pt; text-align:center;' >
</td>
<?php endif; ?>
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="SEA">
<td align="center" > <?= _("No Séance") ?> </td>
<td align="center">
<INPUT class="form-control" TYPE="text" Value="<?= $prescription['numeroBonSeance'] ?>" readonly style='font-size:10pt; text-align:center;' >
</td>
</tr>
<tr>
<td width="10%" >
<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align:center;" type="text" value="<?= _("Prix Unitaire") ?>" readonly>
</td>
<td width="20%" >
<button type="button" class="btn span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= format_N($this->nettoyer($prescription['valeurActeSeance'])) ?>
</button>
</td>
<td width="15%" align="center" > <?= _("Nombre effectué") ?> </td>
<td width="15%" >
<input class="form-control" id="quantiteSeance" name="quantiteSeance" type="number" value="<?= $this->nettoyer($prescription['quantiteSeance']) ?>" style="text-align: center; font-size:10pt; '"
onChange="javascript:ajaxprixseancesea();" >
</td>
<div id="infosacte" style='font-size:10pt;'>
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
<input class="sr-only" type="number" id="valeurActe" name="valeurActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
<input class="sr-only" type="number" id="aRembourser" name="aRembourser" value="<?= $this->nettoyer($prescription['montantArembourserSeance']) ?>" >
<input class="sr-only" type="number" id="totalActe" name="totalActe" value="<?= $this->nettoyer($prescription['fraisReelSeance']) ?>" >
<input class="sr-only" type="number" id="fraisRetenuSeance" name="fraisRetenuSeance" value="<?= $this->nettoyer($prescription['fraisRetenuSeance']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($prescription['fraisReelSeance']) ?>" >
<input class="sr-only" type="number" id="montantTm" name="montantTm" value="<?= $this->nettoyer($prescription['montantTmSeance']) ?>" >
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelSeance'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmSeance'])) ?>" >
<td width="10%" align="center"> <?= _("Montant Total") ?> </td>
<td width="25%" >
<input class="form-control" style="background-color: rgb(190,190,190) !important; text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['fraisReelSeance'])) ?>" readonly >
<!--<input class="form-control" style="background-color:blue;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($prescription['fraisReelBaseSeance'])) ?>" readonly >-->
</td>
</tr>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" align="center" > <?= _("Date Séance") ?> </td>
<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) !important;text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['montantTmSeance'])) ?>" readonly ></td>
<td align="center">
<INPUT class="form-control" TYPE="text" Value="<?= $_SESSION['p_dateFactureReellefr_C'] ?>" readonly style='font-size:10pt; text-align:center;' >
</td>
<td align="center" width="15%">
<?= _("Motif Dépassement") ?>
</td>
<?php if($codeMotifDepassement!=''): ?>
<td align="center" width="15%">
<button style="width:100%" type="button" class="btn btn-info" title="Voir le motif du dépassement..." onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td width="15%">
<INPUT class="form-control" TYPE="text" Value="" readonly style='font-size:10pt; text-align:center;' >
</td>
<?php endif; ?>
<td align="center" > <?= _("A Rembourser") ?> </td>
<td > <input class="form-control" style="background-color: rgb(190,190,190) !important;text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['montantArembourserSeance'])) ?>" readonly ></td>
<td align="center"> <?= _("Dépassement") ?> </td>
<td> <input id="depassement_info" name="depassement_info" class="form-control" style="background-color:red !important;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($prescription['depassementSeance'])) ?>" readonly ></td>
</tr>
</tbody>
</table>
</div>
<td align="center" > <?= _("No Séance") ?> </td>
<td align="center">
<INPUT class="form-control" TYPE="text" Value="<?= $prescription['numeroBonSeance'] ?>" readonly style='font-size:10pt; text-align:center;' >
</td>
</tr>
</div>
<tr>
<td width="10%" >
<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align:center;" type="text" value="<?= _("Prix Unitaire") ?>" readonly>
</td>
<td width="20%" >
<?php if($prixActeModifiable=="1") : ?>
<input class="form-control" type="number" id="prixModifiable" name="prixModifiable" value="<?= $prixActe ?>" onchange="modifier_prix_seance_kine();" >
<input id="prixActe_info" name="prixActe_info" class="sr-only" type="text" value="<?= format_N($prixActe) ?>" readonly>
<?php else: ?>
<button type="button" class="btn span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= 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 effectué") ?> </td>
<td width="15%" >
<input class="form-control" id="quantiteSeance" name="quantiteSeance" type="number" value="<?= $this->nettoyer($prescription['quantiteSeance']) ?>" style="text-align: center; font-size:10pt; '"
onChange="javascript:ajaxprixseancesea();" >
</td>
<td width="10%" align="center"> <?= _("Montant Total") ?> </td>
<td width="25%" >
<input id="totalActe_info" name="totalActe_info" class="form-control" style="background-color: rgb(190,190,190) !important; text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['fraisReelSeance'])) ?>" 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) !important;text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['montantTmSeance'])) ?>" 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) !important;text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['montantArembourserSeance'])) ?>" readonly ></td>
<td align="center"> <?= _("Dépassement") ?> </td>
<td> <input id="depassement_info" name="depassement_info" class="form-control" style="background-color:red !important;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($prescription['depassementSeance'])) ?>" readonly ></td>
</tr>
</tbody>
</table>
</div>

View File

@ -239,7 +239,6 @@
<?php if($nbFait == '0' && $_SESSION['proforma_envoye'] == '0' && $codePrestataireAccorde ==''): ?>
<button type="button" id="btn_proforma" name="btn_proforma" class="form-control btn btn-info" style="font-weight:bold; font-size:12pt;" onclick="javascript:proforma_seance_sea('<?= $codeActePrescription ?>');"> <?= _("Envoyer une demande d'accord préalable...") ?></button>
<?php elseif($_SESSION['proforma_envoye']=='1' && $proformaAccorde=='0' && $codePrestataireAccorde ==''): ?>
<!--<button type="button" id="btn_actualiser" name="btn_actualiser" class="form-control btn btn-primary" style='font-size:12pt;' onclick="javascript:actualiser_seance_cso()"> <?= _("Actualiser") ?></button>-->
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:red; background-color:yellow; font-size:14pt">
<?= _("Veuillez patienter, votre demande sera traitée dans un court instant! Merci.") ?>
</marquee>
@ -266,18 +265,13 @@
<tbody>
<?php if($facture == '0'): ?>
<tr>
<td colspan="3"><textarea style='font-size:10pt;' id ="rapportTraitement" name="rapportTraitement" rows="20" class="form-control-lg" placeholder="<?= _('Rapport traitement ici') ?>" required AUTOCOMPLETE="OFF" autofocus style="width:100%;" onchange="javascript:enregistrer_rapport_seance();"><?= $rapportTraitement;?></textarea></td>
</tr>
<!--
<tr>
<td colspan="3" align="center"> <input style='font-size:10pt;' type="button" class = "form-control btn btn-primary" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_rapport_seance();"> </td>
</tr>
-->
<tr>
<td colspan="3"><textarea style='font-size:10pt;' id ="rapportTraitement" name="rapportTraitement" rows="20" class="form-control-lg" placeholder="<?= _('Rapport traitement ici') ?>" required AUTOCOMPLETE="OFF" autofocus style="width:100%;" onchange="javascript:enregistrer_rapport_seance();"><?= $rapportTraitement;?></textarea></td>
</tr>
<?php else: ?>
<tr>
<td colspan="3"><textarea style='font-size:10pt;' id ="rapportTraitement" name="rapportTraitement" rows="20" class="form-control-lg" placeholder="<?= _('Rapport traitement ici') ?>" disabled style="width:100%;"><?= $rapportTraitement;?></textarea></td>
</tr>
<tr>
<td colspan="3"><textarea style='font-size:10pt;' id ="rapportTraitement" name="rapportTraitement" rows="20" class="form-control-lg" placeholder="<?= _('Rapport traitement ici') ?>" disabled style="width:100%;"><?= $rapportTraitement;?></textarea></td>
</tr>
<?php endif; ?>
</tbody>
</table>

View File

@ -92,7 +92,7 @@
<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"
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" readonly >
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" readonly >
</td>
</tr>
</tbody>
@ -117,7 +117,7 @@
<?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: ?>
<SELECT id="medecinPrescription" class="form-control selectpicker" data-live-search="true" NAME="medecinPrescription" disabled onChange="" style='font-size:10pt;' >
<SELECT id="medecinPrescription" class="form-control selectpicker" data-live-search="true" NAME="medecinPrescription" disabled style='font-size:10pt;' >
<?php liste_options($medecins,$seance['codeMedecin'],true); ?>
</SELECT>
<?php endif; ?>

View File

@ -909,7 +909,7 @@
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" />-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="Js/fonctions.js?ver=2026.03.13.05"></script>
<script src="Js/fonctions.js?ver=2026.03.13.06"></script>
<script src="Bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>