|
|
@@ -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>
|