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

111 lines
5.1 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - En attente de demande de règlement ";
?>
<legend> <?= _("En attente de demande de règlement") ?> </legend>
<?php $nbligne = 0; ?>
<div id="div_detail">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<td width="34%"> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:en_attente_demandesreglement();"><?= _("Actualiser...") ?></button> </td>
<td> <input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne" name="nbligne" value="Lignes : <?= format_N($this->nettoyer($decomptes_total['nbLigne'])) ?> " readonly> </td>
<td width="34%"> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:en_attente_demandesreglement_export();"> <?= _("Exporter vers Excel...") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_liste">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<td colspan="4" style='text-align:center'> <?= format_N($this->nettoyer($decomptes_total['nbLigne'])) ?> <?= _("Lignes au total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantApayerTotal'])) ?></td>
<td colspan="2" > </td>
</tr>
<tr>
<th style='text-align:center'> <?= _("Exercice") ?> </th>
<th style='text-align:center'> <?= _("Mois") ?> </th>
<th width="10%" style='text-align:center'> <?= _("No Décpte") ?> </th>
<th style='text-align:center'> <?= _("Bénéficiaire paiement") ?> </th>
<th style='text-align:center'> <?= _("A régler") ?> </th>
<td style='text-align:center' colspan="2" > <?= _("Validation") ?> </td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4" style='text-align:center'> <?= format_N($this->nettoyer($decomptes_total['nbLigne'])) ?> <?= _("Lignes au total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($decomptes_total['montantApayerTotal'])) ?></td>
<td colspan="2" > </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($decomptes as $decompte):
$idReglement = $this->nettoyer($decompte['idReglement']);
$idBeneficiaire = $this->nettoyer($decompte['idBeneficiaire']);
$numeroDecompte = $this->nettoyer($decompte['numeroDecompte']);
$numeroDemandeReglement = $this->nettoyer($decompte['numeroDemandeReglement']);
$codePrestataire = $this->nettoyer($decompte['codePrestataire']);
$codeExercice = $this->nettoyer($decompte['codeExercice']);
$codeMois = $this->nettoyer($decompte['codeMois']);
$codeTypeDecompte = $this->nettoyer($decompte['codeTypeDecompte']);
if($codeTypeDecompte=="E" or $codeTypeDecompte=="L")
{
$codeTypeDecompte="P";
}
$idPolice = $this->nettoyer($decompte['idPolice']);
$nbligne++;
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($decompte['codeExercice']) ?></td>
<td align='center'><?= $this->nettoyer($decompte['codeMois']) ?></td>
<td align="center">
<?php if($codeTypeDecompte=='P'): ?>
<input style='font-size:9pt;' class="form-control btn btn-primary" type="button" value="<?= $numeroDecompte ?>"
onClick="javascript:initierdecompte_liste('<?= $codePrestataire ?>', '<?= $codeExercice ?>', '<?= $codeMois ?>');">
<?php elseif($codeTypeDecompte=='C'): ?>
<input style='font-size:9pt;' class="form-control btn btn-warning" type="button" value="<?= $numeroDecompte ?>"
onClick="javascript:rechercher_dossier_classique('<?= $numeroDecompte ?>', '<?= $idBeneficiaire ?>' );">
<?php elseif($codeTypeDecompte=='CP'): ?>
<input style='font-size:9pt;' class="form-control btn btn-warning" type="button" value="<?= $numeroDecompte ?>"
onClick="javascript:rechercher_dossier_classique_police('<?= $idReglement ?>' );">
<?php elseif($codeTypeDecompte=='F'): ?>
<input style='font-size:9pt;' class="form-control btn btn-danger" type="button" value="<?= $numeroDecompte ?>"
onClick="javascript:rechercher_frais_funeraire('<?= $idReglement ?>', '<?= $idBeneficiaire ?>' );">
<?php endif; ?>
</td>
<!-- <td align='center'><?= $this->nettoyer($decompte['prestataire']) ?></td> -->
<td align='center'><?= $this->nettoyer($decompte['beneficiaireReglement']) ?></td>
<td align='center'><?= format_N($this->nettoyer($decompte['montantApayer'])) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($decompte['heureValidationDecompte'])) ?></td>
<td align='center'><?= $this->nettoyer($decompte['userValidationDecompte']) ?></td>
<td align='center'><?= $this->nettoyer($decompte['idPolice']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
</div>
<div id="div_export_a">
</div>