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

77 lines
3.9 KiB
PHP
Executable File

<?php $nbligne = 0; ?>
<div id="div_detail">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<td colspan="5" style='text-align:center'> <?= format_N($this->nettoyer($decomptes_total['nbLigne'])) ?> <?= _("Lignes au total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantFactureTotal'])) ?></td>
<td> </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantApayerTotal'])) ?></td>
<td colspan="2" > </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantPayeTotal'])) ?></td>
<td colspan="3" > </td>
</tr>
<tr>
<th style='text-align:center'> <?= _("Exercice") ?> </th>
<th style='text-align:center'> <?= _("Mois") ?> </th>
<th style='text-align:center'> <?= _("No Lot") ?> </th>
<th style='text-align:center'> <?= _("Vérif") ?> </th>
<th style='text-align:center'> <?= _("Réception") ?> </th>
<th style='text-align:center'> <?= _("Mont Fact") ?> </th>
<th style='text-align:center'> <?= _("Dde Rgt") ?> </th>
<th style='text-align:center'> <?= _("A payer") ?> </th>
<th style='text-align:center'> <?= _("Date Rgt") ?> </th>
<th style='text-align:center'> <?= _("Date Cpt") ?> </th>
<th style='text-align:center'> <?= _("Réglé") ?> </th>
<th colspan="3" style='text-align:center'> <?= _("Références paiement") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="5" style='text-align:center'> <?= format_N($this->nettoyer($decomptes_total['nbLigne'])) ?> <?= _("Lignes au total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantFactureTotal'])) ?></td>
<td> </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantApayerTotal'])) ?></td>
<td colspan="2" > </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantPayeTotal'])) ?></td>
<td colspan="3" > </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($decomptes as $decompte):
$numeroLotDecompte = $this->nettoyer($decompte['numeroLotDecompte']);
$codePrestataire = $this->nettoyer($decompte['codePrestataire']);
$codeExercice = $this->nettoyer($decompte['codeExercice']);
$codeMois = $this->nettoyer($decompte['codeMois']);
$nbligne++;
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($decompte['codeExercice']) ?></td>
<td align='center'><?= $this->nettoyer($decompte['codeMois']) ?></td>
<td width="10%" align="center">
<input class="form-control btn btn-primary" type="button" value="<?= $numeroLotDecompte ?>"
onClick="javascript:initierdecompte_liste('<?= $codePrestataire ?>', '<?= $codeExercice ?>', '<?= $codeMois ?>');">
</td>
<td align='center'><?= $this->nettoyer($decompte['userControle']) ?></td>
<td align='center'><?= dateLang($this->nettoyer($decompte['dateReception'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($decompte['montantFacture'])) ?></td>
<td align='center'><?= dateLang($this->nettoyer($decompte['dateDemandeReglement'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($decompte['montantApayer'])) ?></td>
<td align='center'><?= dateLang($this->nettoyer($decompte['dateReglement'])) ?></td>
<td align='center'><?= dateLang($this->nettoyer($decompte['dateComptable'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($decompte['montantPaye'])) ?></td>
<td align='center'><?= $this->nettoyer($decompte['codeModePaiement']) ?></td>
<td align='center'><?= $this->nettoyer($decompte['codeBanquePayeur']) ?></td>
<td align='center'><?= $this->nettoyer($decompte['referencePaiement']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
</div>