168 lines
8.0 KiB
PHP
Executable File
168 lines
8.0 KiB
PHP
Executable File
<?php
|
|
|
|
|
|
$soldeConsommation = $baremesolde['soldeConsommation'];
|
|
$soldeNbreTransaction = $baremesolde['soldeNbreTransaction'];
|
|
|
|
if($soldeConsommation < 0)
|
|
{
|
|
$soldeConsommation = 0;
|
|
}
|
|
|
|
if($soldeNbreTransaction < 0)
|
|
{
|
|
$soldeNbreTransaction = 0;
|
|
}
|
|
|
|
//var_dump($statut);
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prescription['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prescription['motif']);
|
|
$motifEng = $this->nettoyer($prescription['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prescription['tarif']);
|
|
|
|
$libelleMotif = $motifStatut['libelle'];
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleMotif = $motifStatut['libelleEng'];
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
$numeroBonSeance = $this->nettoyer($prescription['numeroBonSeance']);
|
|
$_SESSION['p_numeroBonSeance_C'] = $numeroBonSeance;
|
|
$codeGestionBon = $this->nettoyer($prescription['codeGestionBon']);
|
|
|
|
?>
|
|
|
|
<input class="sr-only" type="number" id="numeroBonSeance_info" name="numeroBonSeance_info" value="<?= $numeroBonSeance ?>" >
|
|
|
|
|
|
<?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; ?>
|
|
|
|
<div id="infosacte" style='font-size:10pt;'>
|
|
<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="totalBaseActe" name="totalBaseActe" value="<?= $this->nettoyer($prescription['fraisReelBaseSeance']) ?>" >
|
|
<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="text" id="base" name="base" value="<?= $this->nettoyer($prescription['fraisReelBaseSeance']) ?>" >
|
|
<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="base_f" name="base_f" value="<?= format_N($this->nettoyer($prescription['fraisReelBaseSeance'])) ?>" >
|
|
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmSeance'])) ?>" >
|
|
|
|
<input class="sr-only" type="text" id="statut" name="statut" value="<?= $statut ?>" >
|
|
<input class="sr-only" type="text" id="depassementSeance" name="depassementSeance" value="<?= $this->nettoyer($prescription['depassementSeance']) ?>" >
|
|
|
|
<?php if($statut!="1" && $codeMotifDepassement!=''):?>
|
|
<marquee behavior="scroll" direction="left" scrollamount="15" style="background-color:red;color:white; font-weight:bold; font-size:14pt">
|
|
<?= $libelleMotif ?>
|
|
</marquee>
|
|
<?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; ?>
|
|
|
|
<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:ajaxmajquteseancecso();" >
|
|
</td>
|
|
|
|
<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>
|
|
|
|
<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 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>
|
|
|
|
<tr>
|
|
<td> </td>
|
|
|
|
<td colspan="5" >
|
|
|
|
<input id="btn_enreg_seance" name="btn_enreg_seance" class = "form-control btn btn-primary" type="button" value="<?= _("Valider") ?>" onClick="javascript:valider_seance_cso();" style='font-size:10pt;' >
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_solde">
|
|
<table class="table table-responsive table-condensed" style='font-size:14pt;'>
|
|
<tbody>
|
|
<?php if($prescription['quantiteSeance']>"0" && ($soldeConsommation <="0" || $soldeNbreTransaction <="0")):?>
|
|
<tr>
|
|
<td width="15%" align="center" > <?= _("Solde plafond") ?> </td>
|
|
<td align="center" width="20%">
|
|
<INPUT class="form-control" TYPE="text" Value="<?= format_N($soldeConsommation); ?>" readonly style='font-size:10pt; text-align:center;' >
|
|
</td>
|
|
<td width="15%" align="center" > <?= _("Solde nombre prescription") ?> </td>
|
|
<td align="center" width="20%">
|
|
<INPUT class="form-control" TYPE="text" Value="<?= $soldeNbreTransaction ?>" readonly style='font-size:10pt; text-align:center;' >
|
|
</td>
|
|
</tr>
|
|
<?php endif;?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|