112 lines
5.5 KiB
PHP
Executable File
112 lines
5.5 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Consultations factures assuré";
|
|
?>
|
|
|
|
<legend> <?= _("Historique des factures de l'assuré") ?> </legend>
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("Période du") ?> </td>
|
|
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d1" NAME="d1" value="<?= dateLang($_SESSION['p_d1_C']) ?>" required AUTOCOMPLETE="OFF" ></td>
|
|
|
|
<td width="10%" align="center" > <?= _("au") ?> </td>
|
|
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateLang($_SESSION['p_d2_C']) ?>" required AUTOCOMPLETE="OFF" ></td>
|
|
|
|
<td> </td>
|
|
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:lister_factures_opt_ben();"> <?= _("Actualiser...") ?> </button> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_dossiers">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="12%" style='text-align:center'> Date </th>
|
|
<th width="8%" style='text-align:center'> <?= _("Id Fact") ?> </th>
|
|
<th width="8%" style='text-align:center'> <?= _("No Ord") ?> </th>
|
|
<th width="5%" style='text-align:center'> <?= _("Payé") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("Frais") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("T M") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("A Remb") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("Dépas") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("Retenu") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("Forcé") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("A Payer") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("Payé") ?> </th>
|
|
<th width="5%" style='text-align:center'>Val</th>
|
|
<th width="5%" style='text-align:center'>Rej</th>
|
|
<!-- <th width="5%" style='text-align:center'>Att</th> -->
|
|
<th width="5%" style='text-align:center'>Excl</th>
|
|
<th width="5%" style='text-align:center'>Obs</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($factures as $facture):
|
|
$idFacture = $facture['idFacture'];
|
|
$numeroBonOptique = $facture['numeroBonOptique'];
|
|
$numeroOptique = $facture['numeroOptique'];
|
|
$codePrestataireLivraison = $facture['codePrestataireLivraison'];
|
|
$observations = $facture['observations'];
|
|
$regle = $facture['regle'];
|
|
$valide = $facture['valide'];
|
|
?>
|
|
<tr valign="top">
|
|
<td width="12%" align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td>
|
|
|
|
<td width="8%" align="center">
|
|
<input class="form-control btn btn-primary" type="button" value="<?= $idFacture ?>"
|
|
onClick="javascript:afficher_facture_cons_opt_ben('<?= $idFacture ?>', '<?= $numeroBonOptique ?>', '<?= $numeroOptique ?>', '<?= $codePrestataireLivraison ?>');">
|
|
</td>
|
|
|
|
<!-- <td width="8%" align='center'> <?= $this->nettoyer($facture['numeroDecompte']) ?> </td> -->
|
|
<td width="8%" align='center'> <?= $this->nettoyer($numeroBonOptique) ?> </td>
|
|
|
|
<?php if($regle=='1'): ?>
|
|
<td width="5%" align='center'> <input type="checkbox" checked value="<?= $regle ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td width="5%" align='center'> <input type="checkbox" value="<?= $regle ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['montantForce'])) ?></td>
|
|
<td width="6%" align='center' style="color:red"><?= format_N($this->nettoyer($facture['montantApayer'])) ?></td>
|
|
<td width="6%" align='center' style="color:blue"><?= format_N($this->nettoyer($facture['montantPaye'])) ?></td>
|
|
|
|
<?php if($valide=='1'): ?>
|
|
<td width="5%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td width="5%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($valide=='9'): ?>
|
|
<td width="5%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td width="5%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($valide=='2'): ?>
|
|
<td width="5%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td width="5%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($observations>' '): ?>
|
|
<td width="5%" align="center"> <input type="button" value="Obs."
|
|
onClick="javascript:alert('<?= $observations ?>');">
|
|
</td>
|
|
<?php else: ?>
|
|
<td width="5%"> </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|