150 lines
8.1 KiB
PHP
Executable File
150 lines
8.1 KiB
PHP
Executable File
<?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']);
|
|
|
|
$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'];
|
|
}
|
|
|
|
$codeActe = $prescription['codeActePrescription'];
|
|
|
|
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
|
|
$valeurActe = $this->nettoyer($prescription['valeurActeSeance']);
|
|
$prixActe = $valeurActe;
|
|
?>
|
|
|
|
<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 ?>" >
|
|
|
|
<?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; ?>
|
|
|
|
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="SEA">
|
|
|
|
<div id="infosacte" style='font-size:10pt;'>
|
|
<input class="sr-only" type="text" id="statut" name="statut" value="<?= $statut ?>" >
|
|
<input class="sr-only" type="number" id="prixBase" name="prixBase" value="<?= $this->nettoyer($prescription['prixBase']) ?>">
|
|
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
|
|
<input class="sr-only" type="number" id="prixSaisi" name="prixSaisi" 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="fraisReelBase" name="fraisReelBase" value="<?= $this->nettoyer($prescription['fraisReelBase']) ?>">
|
|
<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'])) ?>" >
|
|
<input class="sr-only" type="number" id="depassement" name="depassement" value="<?= $this->nettoyer($prescription['depassement']) ?>">
|
|
<input class="sr-only" type="number" 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%" >
|
|
<?php if($prixActeModifiable=="1") : ?>
|
|
<input style="font-size:10pt;" 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>
|