prestation/Vue/Ajaxecartdecompte/ecartfacture.php
2025-12-05 10:42:46 +00:00

60 lines
2.4 KiB
PHP
Executable File

<?php
$actVisible = $_SESSION['actVisible'];
?>
<div id="div_ecart_decompte">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th rowspan="2" width="10%" style='text-align:center'> Date </th>
<th rowspan="2" colspan="2" style='text-align:center;'> <?= _("Bénéficiaire") ?> </th>
<th colspan="3" style='text-align:center;'> <?= _("Montants") ?> </th>
<th rowspan="2" style='text-align:center'> Sens </th>
<th rowspan="2" width="5%" style='text-align:center'>Obs</th>
</tr>
<tr>
<th style='text-align:center;'> <?= _("Prestataire") ?> </th>
<th style='text-align:center;'> <?= _("Assureur") ?> </th>
<th style='text-align:center;'> <?= _("Différence") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($ecartfactures as $facture):
$idFacture = $this->nettoyer($facture['idFacture']);
$idEcart = $this->nettoyer($facture['id']);
$observations = $facture['observations'];
if (est_anglophone())
{
$libelleEcart = $this->nettoyer($facture['libelleEcartEng']);
}
else
{
$libelleEcart = $this->nettoyer($facture['libelleEcart']);
}
?>
<tr valign="top">
<td align='center'><?= dateheureLang($this->nettoyer($facture['dateFacture'])) ?></td>
<td align='center'> <?= $this->nettoyer($facture['numeroBeneficiaire']) ?> </td>
<td> <?= $this->nettoyer($facture['beneficiaire']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($facture['montantPrestataire'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($facture['montantAssureur'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($facture['montantEcart'])) ?> </td>
<td align='center'> <?= $libelleEcart ?> </td>
<?php if($observations>' '): ?>
<td width="5%" align="center"> <input type="button" value="<?= _("Obs") ?>"
onClick="javascript:maj_observations_ecart_facture(<?= $idEcart ?>,'<?= $observations ?>');">
</td>
<?php else: ?>
<td width="5%" align="center"> <input type="button" value="-"
onClick="javascript:maj_observations_ecart_facture(<?= $idEcart ?>,'<?= $observations ?>');">
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>