signe expense

This commit is contained in:
2026-03-23 09:48:19 +01:00
parent 9b2cc83512
commit 5859221fca
4 changed files with 116 additions and 80 deletions
+2 -1
View File
@@ -123,7 +123,7 @@ input[type="number"].no-spinners {
<td class="text-center text-muted">
<?php if ($amount != 0): ?>
<div class="cell-content">
<span>- <?= number_format($amount, 0, ',', ' ') ?> €</span>
<span style="color:#1e293b; font-weight:500;"><?= number_format($amount, 0, ',', ' ') ?> €</span>
<button class="btn-cell-delete"
onclick="deleteSavingsEntry('<?= $month ?>', '<?= htmlspecialchars($cat, ENT_QUOTES) ?>', '<?= $currentOwner ?>')">
&times;
@@ -140,6 +140,7 @@ input[type="number"].no-spinners {
<?php foreach ($months as $month):
$total = $data[$month]['TOTAL_BANQUE'] ?? 0;
$sum = 0;
// Le calcul reste identique : Total de la banque - Somme des enveloppes
foreach ($allCategories as $cat) $sum += ($data[$month][$cat] ?? 0);
$extra = $total - $sum;
?>