prestation/Vue/Ajaxprixseancesea/index.php
2025-12-05 10:42:46 +00:00

152 lines
7.2 KiB
PHP
Executable File

<?php
$soldeConsommation = $baremesolde['soldeConsommation'];
$soldeNbreTransaction = $baremesolde['soldeNbreTransaction'];
if($soldeConsommation < 0)
{
$soldeConsommation = 0;
}
if($soldeNbreTransaction < 0)
{
$soldeNbreTransaction = 0;
}
$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'];
}
?>
<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="prixBase" name="prixBase" value="<?= $this->nettoyer($prescription['prixBase']) ?>">
<input class="sr-only" type="number" id="fraisReelBase" name="fraisReelBase" value="<?= $this->nettoyer($prescription['fraisReelBase']) ?>">
<input class="sr-only" type="number" id="depassement" name="depassement" value="<?= $this->nettoyer($prescription['depassement']) ?>">
<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="number" id="depassementSeance" name="depassementSeance" value="<?= $this->nettoyer($prescription['depassementSeance']) ?>" >
<input class="sr-only" type="text" id="statut" name="statut" value="<?= $statut ?>" >
<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($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:alert("<?= $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>
<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 >
</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>
</tbody>
</table>
<div id="div_fraisExclu">
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
</div>
<div id="div_solde">
<table class="table table-responsive table-condensed" style='font-size:14pt;'>
<tbody>
<?php if($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 prestation") ?> </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>
</div>