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 && ( <>