From c5dc63cfe50ad3fdcce93fa085433048fa693bc5 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sat, 15 Aug 2026 14:41:09 +0200 Subject: [PATCH] Ajout d'un menu --- frontend/src/pages/InvestissementDetail.jsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/pages/InvestissementDetail.jsx b/frontend/src/pages/InvestissementDetail.jsx index 5622fff..05b1df1 100644 --- a/frontend/src/pages/InvestissementDetail.jsx +++ b/frontend/src/pages/InvestissementDetail.jsx @@ -158,6 +158,7 @@ export default function InvestissementDetail() { const [cardMenu, setCardMenu] = useState(null); const [fiscaliteOverrideConfirm, setFiscaliteOverrideConfirm] = useState(false); const [rembMenu, setRembMenu] = useState(null); + const [showImpositionDetail, setShowImpositionDetail] = useState(false); const [reinvMenu, setReinvMenu] = useState(null); const [simulMenu, setSimulMenu] = useState(null); const [editDpeModal, setEditDpeModal] = useState(false); @@ -1265,6 +1266,8 @@ export default function InvestissementDetail() { {showLocalCols && Taxe Locale} Intérêts ({netMode ? 'Net' : 'Brut'}) Cashback + {showImpositionDetail && Impôt sur le revenu} + {showImpositionDetail && Prélèvements sociaux} Imposition{tblIsIndicatif ? ' — indicatif' : ''} Montant versé @@ -1295,6 +1298,8 @@ export default function InvestissementDetail() { {fmtEUR(netMode ? r.interets_nets : r.interets_bruts)} {fmtEUR(r.cashback)} + {showImpositionDetail && {fmtEUR(r.prelev_forfaitaire)}} + {showImpositionDetail && {fmtEUR(r.prelev_sociaux)}} {fmtEUR((r.prelev_sociaux || 0) + (r.prelev_forfaitaire || 0))} @@ -1333,6 +1338,8 @@ export default function InvestissementDetail() { )} {fmtEUR(netMode ? tot.interets_nets : tot.interets_bruts)} {fmtEUR(tot.cashback)} + {showImpositionDetail && {fmtEUR(tot.prelev_forfaitaire)}} + {showImpositionDetail && {fmtEUR(tot.prelev_sociaux)}} {fmtEUR(tot.prelev_sociaux + tot.prelev_forfaitaire)} @@ -2573,6 +2580,15 @@ export default function InvestissementDetail() { Ajouter un remboursement +
+ {remb.length > 0 && ( <>