Correction de l'affichage en tant que mono détenteur
This commit is contained in:
1 parent
69d006d358
commit
11790c63fe
6 files changed
+109
-37
No files matched your search
@@ -962,7 +962,7 @@ export default function Investissements() {
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Plateforme</th>
|
||||
<th>Détenteur</th>
|
||||
{multiDetenteur && <th>Détenteur</th>}
|
||||
<th className="num">Projets</th>
|
||||
<th className="num">Montant investi</th>
|
||||
<th className="num">Capital investi</th>
|
||||
@@ -974,7 +974,7 @@ export default function Investissements() {
|
||||
</thead>
|
||||
<tbody>
|
||||
{platData.length === 0 && (
|
||||
<tr><td colSpan={9} className="text-muted" style={{ textAlign: 'center', padding: 24 }}>
|
||||
<tr><td colSpan={multiDetenteur ? 9 : 8} className="text-muted" style={{ textAlign: 'center', padding: 24 }}>
|
||||
Aucun investissement
|
||||
</td></tr>
|
||||
)}
|
||||
@@ -999,7 +999,7 @@ export default function Investissements() {
|
||||
}}>!</span>
|
||||
)}
|
||||
</td>
|
||||
<td className="text-muted" style={{ fontSize: 'var(--fs-sm)' }}>{p.detenteur_nom || '—'}</td>
|
||||
{multiDetenteur && <td className="text-muted" style={{ fontSize: 'var(--fs-sm)' }}>{p.detenteur_nom || '—'}</td>}
|
||||
<td className="num">{p.count}</td>
|
||||
<td className="num">{fmtEUR(p.investi)}</td>
|
||||
<td className="num">{fmtEUR(p.encours)}</td>
|
||||
@@ -1032,7 +1032,7 @@ export default function Investissements() {
|
||||
<td style={{ padding: '10px 12px', color: 'var(--text-muted)', fontSize: 'var(--fs-sm)', fontWeight: 600 }}>
|
||||
Total — {platData.length} plateformes
|
||||
</td>
|
||||
<td />
|
||||
{multiDetenteur && <td />}
|
||||
<td className="num" style={{ padding: '10px 12px' }}>{platTotals.count}</td>
|
||||
<td className="num" style={{ padding: '10px 12px' }}>{fmtEUR(platTotals.investi)}</td>
|
||||
<td className="num" style={{ padding: '10px 12px' }}>{fmtEUR(platTotals.encours)}</td>
|
||||
@@ -1202,7 +1202,7 @@ export default function Investissements() {
|
||||
<table style={{ cursor: 'pointer' }}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th><th>Projet</th><th>Plateforme</th><th>Détenteur</th>
|
||||
<th>Date</th><th>Projet</th><th>Plateforme</th>{multiDetenteur && <th>Détenteur</th>}
|
||||
<th className="num">Montant</th><th className="num">Taux</th>
|
||||
<th className="num">Durée</th><th>Type remb.</th>
|
||||
<th className="num">Inv. remboursés</th><th className="num">Cap. restant dû</th>
|
||||
@@ -1213,7 +1213,7 @@ export default function Investissements() {
|
||||
</thead>
|
||||
<tbody>
|
||||
{rows.length === 0 && (
|
||||
<tr><td colSpan={13} className="text-muted" style={{ textAlign: 'center', padding: 24 }}>
|
||||
<tr><td colSpan={multiDetenteur ? 13 : 12} className="text-muted" style={{ textAlign: 'center', padding: 24 }}>
|
||||
{loading ? 'Chargement…' : 'Aucun investissement'}
|
||||
</td></tr>
|
||||
)}
|
||||
@@ -1233,7 +1233,7 @@ export default function Investissements() {
|
||||
{r.emetteur && <div className="text-muted" style={{ fontSize: 11 }}>{r.emetteur}</div>}
|
||||
</td>
|
||||
<td>{r.plateforme_nom}</td>
|
||||
<td className="text-muted" style={{ fontSize: 'var(--fs-sm)' }}>{r.plateforme_detenteur_nom || '—'}</td>
|
||||
{multiDetenteur && <td className="text-muted" style={{ fontSize: 'var(--fs-sm)' }}>{r.plateforme_detenteur_nom || '—'}</td>}
|
||||
<td className="num">{fmtEUR(capInv)}</td>
|
||||
<td className="num">{r.taux_interet != null ? fmtPct(r.taux_interet) : '—'}</td>
|
||||
<td className="num">{r.duree_mois ? `${r.duree_mois} m.` : '—'}</td>
|
||||
|
||||
Reference in new issue
Block a user