assure/Vue/Ajaxfacturesfamille/index.php
2025-12-01 19:07:16 +00:00

72 lines
2.6 KiB
PHP

<div id="div_dossiers">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> Typ </th>
<th style='text-align:center'> Bon</th>
<th style='text-align:center'> Id Fact</th>
<th style='text-align:center'> Date </th>
<th> Prestataire </th>
<th> Bénéficiaire </th>
<th style='text-align:center'> Frais </th>
<th style='text-align:center'> T M </th>
<th style='text-align:center'> A Rmb </th>
<th style='text-align:center'> Dépas. </th>
<th style='text-align:center'> Ret. </th>
</tr>
</thead>
<tbody>
<?php foreach ($factures as $facture):
$idFacture=$this->nettoyer($facture['idFacture']);
$numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']);
$tiersPayant = $facture['tiersPayant'];
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
if($codeTypeFacture=="PHAR")
{
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
}
elseif($codeTypeFacture=="OPT")
{
$numeroBon = $this->nettoyer($facture['numeroBonOptique']);
}
elseif($codeTypeFacture=="LAB")
{
$numeroBon = $this->nettoyer($facture['numeroBonExamen']);
}
elseif($codeTypeFacture=="SEA")
{
$numeroBon = $this->nettoyer($facture['numeroBonKine']);
}
?>
<tr valign="top">
<td align='center'> <?= $codeTypeFacture ?> </td>
<td align='center'> <?= $numeroBon ?> </td>
<!-- <td align='center'><?= $idFacture ?></td> -->
<td align='center'>
<input style='font-size:7pt;' type="button" value="<?= $idFacture ?>"
onClick="javascript:consulter_facture_pop('<?= $idFacture ?>');">
</td>
<td align='center'><?= dateheureFr($this->nettoyer($facture['dateSysteme'])) ?></td>
<td><?= $this->nettoyer($facture['prestataire']) ?></td>
<td><?= $this->nettoyer($facture['beneficiaire']) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>