136 lines
6.8 KiB
PHP
Executable File
136 lines
6.8 KiB
PHP
Executable File
<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']);
|
|
|
|
$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'];
|
|
|
|
|
|
?>
|
|
|
|
<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="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'])) ?>" >
|
|
|
|
<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: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 >
|
|
<!--<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>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|