prestation/Vue/Kinecso/seanceseffectuees.php
2025-12-05 10:42:46 +00:00

110 lines
4.6 KiB
PHP
Executable File

<div id="div_facture_definitive"></div>
<div >
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des séances Effectuées") ?>" readonly >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style="text-align:center"> <?= _("Facture") ?></th>
<th style="text-align:center"> <?= _("Séances Effectuées") ?> </th>
<th style="text-align:center"> Date </th>
<th style="text-align:center"> <?= _("Qté") ?> </th>
<th style="text-align:center"> <?= _("Prestataire") ?> </th>
<th style="text-align:center"> <?= _("Bon Séance") ?> </th>
<!--<th style="text-align:center"> <?= _("Base") ?> </th>-->
<th style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
<th style="text-align:center"> <?= _("Prix Total") ?> </th>
<th style="text-align:center"> <?= _("TM") ?> </th>
<th style="text-align:center"> <?= _("Mont. TM") ?> </th>
<th style="text-align:center"> <?= _("A Remb") ?> </th>
<th style="text-align:center"> <?= _("Dépass") ?> </th>
<th style="text-align:center"> <?= _("Motif") ?> </th>
</tr>
<tfoot>
<tr>
<td align="center" colspan="7"> Total </td>
<td align="center" ><?= format_N($totalseances['fraisReel_total']); ?></td>
<td></td>
<td align="center" ><?= format_N($totalseances['montantTm_total']); ?></td>
<td align="center" ><?= format_N($totalseances['montantArembourser_total']); ?></td>
<td align="center" ><?= format_N($totalseances['depassement_total']); ?></td>
<td></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($detailseances as $detailseance):
$idSeance=$this->nettoyer($detailseance['id']);
$ententePrealable = $this->nettoyer($detailseance['ententePrealable']);
$codePrestataire = $this->nettoyer($detailseance['codePrestataire']);
$typeSysteme = $this->nettoyer($detailseance['typeSysteme']);
$idFacture = $this->nettoyer($detailseance['idFacture']);
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeanceEng']);
}
else
{
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeance']);
}
$codeMotifDepassement = $this->nettoyer($detailseance['codeMotifDepassement']);
$motif = $this->nettoyer($detailseance['motif']);
$motifEng = $this->nettoyer($detailseance['motifEng']);
$tarif = $this->nettoyer($detailseance['tarif']);
?>
<tr valign="top">
<td align="center">
<?php if($idFacture > '0'): ?>
<a title='<?= _("Imprimer Facture...") ?>' href="javascript:imprimer_facture_seance('<?= $idFacture ?>');">
<span style="color:red; background-color:#eeeeee; border:1px solid #000; border-radius:3px; padding-left:5px; padding-right:5px;">
<?= $idFacture ?>
</span>
</a>
<?php endif; ?>
</td>
<td align="center"> <?= $libelleActeSeance ?> </td>
<td align="center"> <?= dateheureLang($this->nettoyer($detailseance['dateSysteme'])) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['quantite']) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['prestataireSeance']) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['numeroBonSeance']) ?> </td>
<?php if($codePrestataire==$_SESSION['p_codePrestataire_C']): ?>
<td align='center'>
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= format_N($this->nettoyer($detailseance['valeurActe'])) ?>
</button>
</td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['fraisReel'])) ?> </td>
<td align='center'> <?= $this->nettoyer($detailseance['tm'])?></td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['montantArembourser'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['depassement'])) ?> </td>
<?php if($codeMotifDepassement!=''): ?>
<td align='center'>
<button 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 > </td>
<?php endif; ?>
<?php else: ?>
<td colspan="7"> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>