Fixe affichage versement
This commit is contained in:
@@ -1784,7 +1784,9 @@ export default function InvestissementDetail() {
|
||||
// Dans ce cas, les prélèvements sont affichés en lecture seule et le montant versé
|
||||
// ne les déduit pas (l'investisseur reçoit le brut intégral).
|
||||
const isIndicatif = isExonere || currentPlat?.fiscalite !== 'flat_tax';
|
||||
const montantRembourse = round2((Number(rembForm.capital)||0) + (Number(rembForm.cashback)||0) + (Number(rembForm.interets_bruts)||0));
|
||||
const montantRembourse = isIndicatif
|
||||
? round2((Number(rembForm.capital)||0) + (Number(rembForm.cashback)||0) + (Number(rembForm.interets_bruts)||0))
|
||||
: netRecu;
|
||||
return (
|
||||
<Modal
|
||||
open={rembModalOpen}
|
||||
@@ -1924,7 +1926,7 @@ export default function InvestissementDetail() {
|
||||
<div>
|
||||
<label>Montant Versé (€)</label>
|
||||
<input type="number" step="0.01" value={montantRembourse} readOnly
|
||||
style={{ background: 'var(--bg-input-readonly, rgba(255,255,255,.05))', cursor: 'default' }} />
|
||||
style={{ background: 'var(--surface-2)', color: 'var(--text-muted)', cursor: 'not-allowed' }} />
|
||||
</div>
|
||||
<div style={{ gridColumn: 'span 3', display: 'flex', alignItems: 'center', gap: 8, fontSize: 13 }}>
|
||||
<span style={{ color: 'var(--text-muted)' }}>
|
||||
|
||||
@@ -1588,7 +1588,7 @@ export default function Remboursements() {
|
||||
)}
|
||||
<label>Montant versé (€)</label>
|
||||
<input type="number" step="0.01" value={netRecu} readOnly
|
||||
style={{ background: 'var(--bg-input-readonly, rgba(255,255,255,.05))', cursor: 'default' }} />
|
||||
style={{ background: 'var(--surface-2)', color: 'var(--text-muted)', cursor: 'not-allowed' }} />
|
||||
</div>
|
||||
<div style={{ gridColumn: 'span 3', display: 'flex', alignItems: 'center', gap: 8, fontSize: 13 }}>
|
||||
<span style={{ color: 'var(--text-muted)' }}>
|
||||
|
||||
Reference in New Issue
Block a user