jeremy 4 mesi fa
parent
commit
b829359349
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      frontend/src/pages/Charges.jsx

+ 7 - 0
frontend/src/pages/Charges.jsx

@@ -451,6 +451,7 @@ export default function Charges() {
                     <th className="text-left px-4 py-2 text-purple-700 font-semibold">Année</th>
                     <th className="text-right px-4 py-2 text-purple-700 font-semibold">Montant déductible</th>
                     <th className="text-right px-4 py-2 text-purple-700 font-semibold">Nb factures</th>
+                    <th className="text-right px-4 py-2 text-purple-700 font-semibold">Amortissement 10 ans</th>
                   </tr>
                 </thead>
                 <tbody className="divide-y divide-purple-50">
@@ -463,6 +464,9 @@ export default function Charges() {
                       <td className={`px-4 py-2 text-right ${y.count > 0 ? 'text-gray-600' : 'text-gray-300'}`}>
                         {y.count > 0 ? y.count : '—'}
                       </td>
+                      <td className={`px-4 py-2 text-right ${y.amortization > 0 ? 'text-indigo-700 font-medium' : 'text-gray-300'}`}>
+                        {y.amortization > 0 ? fmt(y.amortization) : '—'}
+                      </td>
                     </tr>
                   ))}
                 </tbody>
@@ -473,6 +477,9 @@ export default function Charges() {
                     <td className="px-4 py-2 text-right font-bold text-gray-600">
                       {deductibleSummary.years.reduce((s, y) => s + y.count, 0)}
                     </td>
+                    <td className="px-4 py-2 text-right font-bold text-indigo-800">
+                      {fmt(deductibleSummary.grand_amortization)}
+                    </td>
                   </tr>
                 </tfoot>
               </table>