Checkpoint: Ajout de libelle_court et libelle_detail dans data_opex.json et data_opex_2025.json pour tous les 35 postes. Les th du tableau Établissements affichent maintenant le nom court en gras (ex: LIFEN) et la description en dessous (ex: Plateforme eSanté Envois), sans le préfixe SAAS/Maintenance/etc.

This commit is contained in:
Manus
2026-06-10 11:40:54 +00:00
parent d2e0137a03
commit fe14ad99e1
3 changed files with 214 additions and 71 deletions

View File

@@ -67,6 +67,8 @@ interface Poste {
budget_n1: number | null;
montant_previsionnel_2026?: number | null;
montant_previsionnel_2025?: number | null;
libelle_court?: string;
libelle_detail?: string;
}
interface Etablissement {
@@ -1333,10 +1335,15 @@ export default function DsiOpex() {
}`}
title={`${ligne.libelle} — ${isManuel ? 'Saisie manuelle' : 'Prorata C 6'} — ${formatEuros(ligne.montant)}`}
>
<span className="block truncate max-w-[100px]" style={{ writingMode: 'horizontal-tb' }}>
{ligne.libelle.length > 18 ? ligne.libelle.slice(0, 16) + '' : ligne.libelle}
<span className="block font-semibold text-[11px] leading-tight">
{srcPoste?.libelle_court ?? ligne.libelle.split(' ')[0]}
</span>
<span className="block text-[10px] font-normal opacity-70 mt-0.5">{formatEuros(ligne.montant)}</span>
{(srcPoste?.libelle_detail) && (
<span className="block text-[10px] font-normal opacity-80 leading-tight mt-0.5">
{srcPoste.libelle_detail}
</span>
)}
<span className="block text-[10px] font-normal opacity-60 mt-0.5">{formatEuros(ligne.montant)}</span>
</th>
);
})}