This commit is contained in:
KONE SOREL 2025-12-27 22:39:15 +00:00
parent 6a91d8b4e6
commit 693f3af4f5

View File

@ -4,7 +4,7 @@
<table class="table table-hover align-middle mb-0 custom-quittance-table">
<thead>
<tr>
<th class="text-center"><?= _("") ?></th>
<th class="text-center" style="display:none;"><?= _("") ?></th>
<th class="text-center"><?= _("Émission") ?></th>
<th class="text-center"><?= _("Date Émiss.") ?></th>
<th class="text-center"><?= _("Effet") ?></th>
@ -25,7 +25,7 @@
$solde = (float)$this->nettoyer($quittance['solde']);
?>
<tr>
<td class="text-center fw-bold text-muted small"><?= $idQuittance ?></td>
<td class="text-center fw-bold text-muted small" style="display:none;"><?= $idQuittance ?></td>
<td class="text-center">
<button type="button" class="btn btn-sm btn-link fw-bold text-decoration-none"
onClick="javascript:afficher_emission(<?= $idEmission ?>);">
@ -44,19 +44,9 @@
<?= format_N($solde) ?>
</td>
<td class="text-center">
<div class="btn-group btn-group-sm shadow-xs">
<button type="button" class="btn btn-outline-secondary" onClick="javascript:imprimer_quittance(<?= $idQuittance ?>);" title="<?= _("Assureur") ?>">
<i class="fas fa-building small"></i>
</button>
<button type="button" class="btn btn-outline-secondary" onClick="javascript:imprimer_quittance_client(<?= $idQuittance ?>);" title="<?= _("Client") ?>">
<i class="fas fa-user small"></i>
</button>
<?php if($solde > 0): ?>
<button type="button" class="btn btn-secondary text-white" onClick="javascript:encaisser_quittance(<?= $idQuittance ?>);" title="<?= _("Encaisser") ?>">
<i class="fas fa-hand-holding-usd"></i>
</button>
<?php endif; ?>
</div>
<button type="button" class="btn btn-outline-secondary" onClick="javascript:imprimer_quittance_client(<?= $idQuittance ?>);" title="<?= _("Client") ?>">
<i class="fas fa-user small"></i>
</button>
</td>
</tr>
<?php endforeach; ?>
@ -64,7 +54,7 @@
<tfoot class="table-light border-top-2">
<tr class="fw-bold">
<td colspan="6" class="text-end text-uppercase small pt-3"><?= _("Totaux Période") ?></td>
<td colspan="5" class="text-end text-uppercase small pt-3"><?= _("Totaux Période") ?></td>
<td class="text-end pt-3 border-start"><?= format_N($this->nettoyer($totalquittanceperiode['primeTtc'])) ?></td>
<td class="text-end pt-3 text-success"><?= format_N($this->nettoyer($totalquittanceperiode['encaisse'])) ?></td>
<td class="text-end pt-3 text-primary"><?= format_N($this->nettoyer($totalquittanceperiode['solde'])) ?></td>