This commit is contained in:
KONE SOREL 2026-01-12 18:57:57 +00:00
parent 347a73f567
commit 5699daf3e9

View File

@ -1,62 +1,70 @@
<div id="div_dossiers"> <div id="div_dossiers" class="card shadow-sm border-0">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;"> <div class="table-responsive">
<thead> <table class="table table-hover align-middle mb-0" style="font-size: 0.85rem;">
<tr> <thead class="table-dark">
<th style='text-align:center'> Type </th> <tr>
<th style='text-align:center'> <?= _("No Bon") ?> </th> <th class="ps-3"><?= _("Type") ?></th>
<th style='text-align:center'> <?= _("Id Fact") ?> </th> <th><?= _("Référence / Bon") ?></th>
<th style='text-align:center'> Date </th> <th class="text-center"><?= _("ID Fact") ?></th>
<th> <?= _("Prestataire") ?> </th> <th><?= _("Date") ?></th>
<th> <?= _("Bénéficiaire") ?> </th> <th><?= _("Prestataire / Bénéficiaire") ?></th>
<th style='text-align:center'> <?= _("Frais") ?> </th> <th class="text-end"><?= _("Frais Réel") ?></th>
<th style='text-align:center'> <?= _("T M") ?> </th> <th class="text-end"><?= _("Part Patient (TM)") ?></th>
<th style='text-align:center'> <?= _("A Remb") ?> </th> <th class="text-end text-warning"><?= _("A Rembourser") ?></th>
<th style='text-align:center'> <?= _("Dépas") ?> </th> <th class="text-end pe-3 small text-uppercase opacity-75"><?= _("Exclu/Ret") ?></th>
<th style='text-align:center'> <?= _("Ret") ?> </th> </tr>
</tr> </thead>
</thead> <tbody>
<?php foreach ($factures as $facture):
$idFacture = $this->nettoyer($facture['idFacture']);
$codeType = $this->nettoyer($facture['codeTypeFacture']);
<tbody> // Définition des couleurs par type
<?php foreach ($factures as $facture): $badgeClass = "bg-secondary";
$idFacture=$this->nettoyer($facture['idFacture']); switch($codeType) {
$numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']); case 'PHAR': $badgeClass = "bg-success"; break;
$tiersPayant = $facture['tiersPayant']; case 'OPT' : $badgeClass = "bg-info text-dark"; break;
case 'LAB' : $badgeClass = "bg-warning text-dark"; break;
case 'SEA' : $badgeClass = "bg-primary"; break;
}
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']); // Logique du numéro de bon
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']); if($codeType=="PHAR") $numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
elseif($codeType=="OPT") $numeroBon = $this->nettoyer($facture['numeroBonOptique']);
if($codeTypeFacture=="PHAR") elseif($codeType=="LAB") $numeroBon = $this->nettoyer($facture['numeroBonExamen']);
{ elseif($codeType=="SEA") $numeroBon = $this->nettoyer($facture['numeroBonKine']);
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']); ?>
} <tr>
elseif($codeTypeFacture=="OPT") <td class="ps-3">
{ <span class="badge <?= $badgeClass ?> w-100"><?= $codeType ?></span>
$numeroBon = $this->nettoyer($facture['numeroBonOptique']); </td>
} <td>
elseif($codeTypeFacture=="LAB") <small class="fw-bold text-muted"><?= $numeroBon ?></small>
{ </td>
$numeroBon = $this->nettoyer($facture['numeroBonExamen']); <td class="text-center">
} <button class="btn btn-sm btn-outline-primary py-0" style="font-size: 0.75rem;"
elseif($codeTypeFacture=="SEA") onClick="consulter_facture_pop('<?= $idFacture ?>');">
{ <i class="fa-solid fa-magnifying-glass me-1"></i><?= $idFacture ?>
$numeroBon = $this->nettoyer($facture['numeroBonKine']); </button>
} </td>
?> <td>
<tr valign="top"> <div class="small lh-1"><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></div>
<td align='center'> <?= $codeTypeFacture ?> </td> </td>
<td align='center'> <?= $numeroBon ?> </td> <td>
<td align='center'> <?= $idFacture ?> </td> <div class="fw-bold text-truncate" style="max-width: 200px;"><?= $this->nettoyer($facture['prestataire']) ?></div>
<td align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td> <div class="small text-muted italic">👤 <?= $this->nettoyer($facture['beneficiaire']) ?></div>
<td><?= $this->nettoyer($facture['prestataire']) ?></td> </td>
<td><?= $this->nettoyer($facture['beneficiaire']) ?></td> <td class="text-end text-monospace fw-bold"><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td> <td class="text-end text-monospace text-danger small"><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td> <td class="text-end text-monospace fw-bold text-primary"><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td> <td class="text-end pe-3">
<td align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td> <div class="small text-muted text-monospace"><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></div>
<td align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td> <div class="small text-muted text-monospace border-top pt-1"><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></div>
</tr> </td>
<?php endforeach; ?> </tr>
</tbody> <?php endforeach; ?>
</table> </tbody>
</table>
</div>
</div> </div>