prestation/Vue/Ajaxgcfraisgestion/affichergcfraisgestion.php
2025-12-01 18:54:33 +00:00

99 lines
4.8 KiB
PHP

<div id="div_fraisgestion">
<?php
$regle = $entetefraisgestion['regle'];
$facture = $entetefraisgestion['facture'];
$regle = $entetefraisgestion['regle'];
?>
<input class="sr-only" type="text" id="regle" name="regle" value="<?= $regle ?>" >
<input class="sr-only" type="text" id="codeGcAssureur" name="codeGcAssureur" value="<?= $this->nettoyer($entetefraisgestion['codeGcAssureur']) ?>" >
<input class="sr-only" type="text" id="codeExercice" name="codeExercice" value="<?= $this->nettoyer($entetefraisgestion['codeExercice']) ?>" >
<input class="sr-only" type="text" id="codeMois" name="codeMois" value="<?= $this->nettoyer($entetefraisgestion['codeMois']) ?>" >
<legend>
<?= _("FRAIS DE GESTION") ?> =>
<?= _("Facturé?") ?>
<?php if ($facture=="1"): ?>
<input type="checkbox" checked disabled>
<?php else: ?>
<input type="checkbox" disabled>
<?php endif; ?>
=>
<?= _("Réglé?") ?>
<?php if ($regle=="1"): ?>
<input type="checkbox" checked disabled>
<?php else: ?>
<input type="checkbox" disabled>
<?php endif; ?>
</legend>
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
<tbody>
<tr>
<td width="15%">
<?php if (est_anglophone()): ?>
<input class="form-control" style="text-align: center; font-size:9pt;" type="text" value="<?= $this->nettoyer($entetefraisgestion['periodeEng']) ?>" readonly>
<?php else: ?>
<input class="form-control" style="text-align: center; font-size:9pt;" type="text" value="<?= $this->nettoyer($entetefraisgestion['periode']) ?>" readonly>
<?php endif; ?>
</td>
<td width="5%" align="center"> Date </td>
<td><INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= dateheureLang($this->nettoyer($entetefraisgestion['dateSysteme'])) ?>" readonly ></td>
<td width="7%" align="center" > <?= _("Nb Carte") ?> </td>
<td width="8%" > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['nbCarte'])) ?>" readonly > </td>
<td width="7%" align="center" > <?= _("Montant") ?> </td>
<td > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['montantFrais'])) ?>" readonly > </td>
<td width="5%" align="center" > <?= _("TVA") ?> </td>
<td > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['tvaFrais'])) ?>" readonly > </td>
<td width="5%" align="center" > <?= _("TTC") ?> </td>
<td > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['ttcFrais'])) ?>" readonly > </td>
</tr>
<tr>
<td colspan="3"> <input class = "form-control btn btn-primary" type="button" value="<?= _("Détail...") ?>" onClick="afficher_detail_gcfraisgestion();" style='font-size:9pt;' > </td>
<td> </td>
<?php if ($facture=="1"): ?>
<td colspan="3"> <input class = "form-control btn btn-primary" type="button" value="<?= _("Recharger...") ?>" style='font-size:9pt;' disabled > </td>
<?php else: ?>
<td colspan="3"> <input class = "form-control btn btn-primary" type="button" value="<?= _("Recharger...") ?>" onClick="rechargergcfraisgestion();" style='font-size:9pt;' > </td>
<?php endif; ?>
<td> </td>
<td colspan="3"> <input class = "form-control btn btn-primary" type="button" value="<?= _("Cumul par souscripteur...") ?>" onClick="cumul_gc_frais_gestion_par_client();" style='font-size:9pt;' > </td>
</tr>
</tbody>
</table>
<div id="div_detail_fraisgestion">
<table class="table table-striped table-bordered table-condensed table-responsive" style='font-size:8pt;'>
<thead>
<tr>
<th style="text-align:center"> <?= _("Souscripteur") ?> </th>
<th style="text-align:center"> <?= _("Adhérent") ?> </th>
<th colspan="2"style="text-align:center"> <?= _("Bénéficiaire") ?> </th>
<td align="center" > <?= _("Montant") ?> </td>
</tr>
</thead>
<tbody>
<?php foreach ($fraisgestions as $fraisgestion):
?>
<tr valign="top">
<td> <?= $this->nettoyer($fraisgestion['souscripteur']) ?> </td>
<td> <?= $this->nettoyer($fraisgestion['adherent']) ?> </td>
<td align='center'> <?= $this->nettoyer($fraisgestion['numeroBeneficiaire']) ?> </td>
<td> <?= $this->nettoyer($fraisgestion['beneficiaire']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($fraisgestion['montantFrais'])) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>