yte
This commit is contained in:
parent
347a73f567
commit
5699daf3e9
|
|
@ -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):
|
||||||
<tbody>
|
$idFacture = $this->nettoyer($facture['idFacture']);
|
||||||
<?php foreach ($factures as $facture):
|
$codeType = $this->nettoyer($facture['codeTypeFacture']);
|
||||||
$idFacture=$this->nettoyer($facture['idFacture']);
|
|
||||||
$numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']);
|
// Définition des couleurs par type
|
||||||
$tiersPayant = $facture['tiersPayant'];
|
$badgeClass = "bg-secondary";
|
||||||
|
switch($codeType) {
|
||||||
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
|
case 'PHAR': $badgeClass = "bg-success"; break;
|
||||||
|
case 'OPT' : $badgeClass = "bg-info text-dark"; break;
|
||||||
|
case 'LAB' : $badgeClass = "bg-warning text-dark"; break;
|
||||||
|
case 'SEA' : $badgeClass = "bg-primary"; break;
|
||||||
|
}
|
||||||
|
|
||||||
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
|
// Logique du numéro de bon
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
|
||||||
if($codeTypeFacture=="PHAR")
|
if($codeType=="PHAR") $numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
|
||||||
{
|
elseif($codeType=="OPT") $numeroBon = $this->nettoyer($facture['numeroBonOptique']);
|
||||||
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
|
elseif($codeType=="LAB") $numeroBon = $this->nettoyer($facture['numeroBonExamen']);
|
||||||
}
|
elseif($codeType=="SEA") $numeroBon = $this->nettoyer($facture['numeroBonKine']);
|
||||||
elseif($codeTypeFacture=="OPT")
|
?>
|
||||||
{
|
<tr>
|
||||||
$numeroBon = $this->nettoyer($facture['numeroBonOptique']);
|
<td class="ps-3">
|
||||||
}
|
<span class="badge <?= $badgeClass ?> w-100"><?= $codeType ?></span>
|
||||||
elseif($codeTypeFacture=="LAB")
|
</td>
|
||||||
{
|
<td>
|
||||||
$numeroBon = $this->nettoyer($facture['numeroBonExamen']);
|
<small class="fw-bold text-muted"><?= $numeroBon ?></small>
|
||||||
}
|
</td>
|
||||||
elseif($codeTypeFacture=="SEA")
|
<td class="text-center">
|
||||||
{
|
<button class="btn btn-sm btn-outline-primary py-0" style="font-size: 0.75rem;"
|
||||||
$numeroBon = $this->nettoyer($facture['numeroBonKine']);
|
onClick="consulter_facture_pop('<?= $idFacture ?>');">
|
||||||
}
|
<i class="fa-solid fa-magnifying-glass me-1"></i><?= $idFacture ?>
|
||||||
?>
|
</button>
|
||||||
<tr valign="top">
|
</td>
|
||||||
<td align='center'> <?= $codeTypeFacture ?> </td>
|
<td>
|
||||||
<td align='center'> <?= $numeroBon ?> </td>
|
<div class="small lh-1"><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></div>
|
||||||
<td align='center'> <?= $idFacture ?> </td>
|
</td>
|
||||||
<td align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td>
|
<td>
|
||||||
<td><?= $this->nettoyer($facture['prestataire']) ?></td>
|
<div class="fw-bold text-truncate" style="max-width: 200px;"><?= $this->nettoyer($facture['prestataire']) ?></div>
|
||||||
<td><?= $this->nettoyer($facture['beneficiaire']) ?></td>
|
<div class="small text-muted italic">👤 <?= $this->nettoyer($facture['beneficiaire']) ?></div>
|
||||||
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
</td>
|
||||||
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
|
<td class="text-end text-monospace fw-bold"><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
||||||
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></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['fraisExclu'])) ?></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['fraisRetenu'])) ?></td>
|
<td class="text-end pe-3">
|
||||||
</tr>
|
<div class="small text-muted text-monospace"><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></div>
|
||||||
<?php endforeach; ?>
|
<div class="small text-muted text-monospace border-top pt-1"><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></div>
|
||||||
</tbody>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user