diff --git a/client/src/data_opex.json b/client/src/data_opex.json index fdce507..749c5fb 100644 --- a/client/src/data_opex.json +++ b/client/src/data_opex.json @@ -8,7 +8,7 @@ "libelle": "SAAS AGEVAL Gestion de la qualité", "detail": "Gestion qualité (procédures,FEI...)", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -21,7 +21,7 @@ "libelle": "SAAS OCTIME Gestion de temps", "detail": "GTA", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -60,7 +60,7 @@ "libelle": "SAAS ISI-APP Gestion de parc", "detail": "Outil de pilotage SI du parc + Connexion AD + Module Santé", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "SAAS", "compte": "613511", @@ -73,7 +73,7 @@ "libelle": "SAAS DLD Gestion de la Conformité RGPD", "detail": "RGPD", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -86,7 +86,7 @@ "libelle": "SAAS Gestion signature électronique", "detail": "DE électroniques", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -112,7 +112,7 @@ "libelle": "Redevance SXS Gestion trésorerie SAGE", "detail": "Communications bancaires", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -138,7 +138,7 @@ "libelle": "SAAS LIFEN Plateforme E-Santé Réceptions", "detail": "SMR / outil d'intégration dans le DPI depuis le DMP et/ou la MSS", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App SMR", "type": "SAAS", "compte": "613511", @@ -151,7 +151,7 @@ "libelle": "SAAS NOVRH", "detail": "SIRH : Maintenance et hébergement", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -164,7 +164,7 @@ "libelle": "SAAS NOVRH Assistance", "detail": "SIRH : Assistance premium", "facturation": null, - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "Maintenance", "compte": "615610", @@ -177,7 +177,7 @@ "libelle": "Coffre fort numérique", "detail": "SIRH : Coffe fort numérique", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -190,7 +190,7 @@ "libelle": "SAAS DUI Pole HEP", "detail": "Outil métier", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App HEP", "type": "SAAS", "compte": "613511", @@ -203,7 +203,7 @@ "libelle": "SAAS DUI BON PASTEUR", "detail": "Outil métier", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App HEP", "type": "SAAS", "compte": "613511", @@ -229,7 +229,7 @@ "libelle": "Infrastructures Data Center + Liens Internet", "detail": "DataCenter", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Loc. Infra Data Center", "compte": "613512", @@ -242,7 +242,7 @@ "libelle": "Liens internet Siège Data Center", "detail": "DataCenter", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Liens Internet", "compte": "626203", @@ -255,7 +255,7 @@ "libelle": "Prestation TMA réglementaire", "detail": "Gestion du temps module TMA", "facturation": "Au fil de l'eau", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "Prestation", "compte": "628400", @@ -268,7 +268,7 @@ "libelle": "Maintenance applicatifs", "detail": "Compta-first, paye-fisrt, GAP-first...", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "Maintenance", "compte": "615610", @@ -281,7 +281,7 @@ "libelle": "Maintenance FLEXICLOUD", "detail": "Connexions aux serveurs du DataCenter", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Maintenance", "compte": "615610", @@ -294,7 +294,7 @@ "libelle": "Abonnement Solution de télémaintenance", "detail": "Prise de main distante pour équipe IT", "facturation": "Annuelle Juin", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Maintenance", "compte": "615610", @@ -307,7 +307,7 @@ "libelle": "Assistance technique Niveau 3", "detail": "Contrat de prestation 10 j + 20h assistnce premium", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Prestation", "compte": "628400", @@ -333,7 +333,7 @@ "libelle": "Maintenance VEEAM", "detail": "DataCenter / Sauvegardes machines + Sauvegardes 0365", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Maintenance", "compte": "615610", @@ -346,7 +346,7 @@ "libelle": "Maintenance WATCHGUARD", "detail": "Sécurité /Pare-feux", "facturation": "Au fil de l'eau", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -359,7 +359,7 @@ "libelle": "Maintenance EPDR WG", "detail": "Sécurité / Anti-virus", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -372,7 +372,7 @@ "libelle": "Maintenance DARKTRACE", "detail": "Sécurité / Inteligence artificielle surveillance réseau", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -385,7 +385,7 @@ "libelle": "Maintenance DARKTRACE ANTIGENA", "detail": "Sécurité / Inteligence artificielle surveillance réseau", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -398,7 +398,7 @@ "libelle": "SAAS Protection mails DARKTRACE", "detail": "Sécurité / Inteligence artificielle surveillance réseau", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "SAAS", "compte": "613511", @@ -411,7 +411,7 @@ "libelle": "SIEM / SOC / NEOEDGE", "detail": "Sécurité / corrélation données logs. Annalyse tentatives d'intrusion", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Prestation", "compte": "628400", @@ -424,7 +424,7 @@ "libelle": "Budget Petit matériel et Autres dépenses", "detail": "Divers matériels", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Petits matériels", "compte": "606241", @@ -450,7 +450,7 @@ "libelle": "Maintenance GAMMEO", "detail": "GMAO", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "Maintenance", "compte": "615610", diff --git a/client/src/data_opex_2025.json b/client/src/data_opex_2025.json index 5cc386c..54cf365 100644 --- a/client/src/data_opex_2025.json +++ b/client/src/data_opex_2025.json @@ -8,7 +8,7 @@ "libelle": "SAAS AGEVAL Gestion de la qualité", "detail": "Gestion qualité (procédures,FEI...)", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -21,7 +21,7 @@ "libelle": "SAAS OCTIME Gestion de temps", "detail": "GTA", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -60,7 +60,7 @@ "libelle": "SAAS ISI-APP Gestion de parc", "detail": "Outil de pilotage SI du parc + Connexion AD + Module Santé", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "SAAS", "compte": "613511", @@ -73,7 +73,7 @@ "libelle": "SAAS DLD Gestion de la Conformité RGPD", "detail": "RGPD", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -86,7 +86,7 @@ "libelle": "SAAS Gestion signature électronique", "detail": "DE électroniques", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -112,7 +112,7 @@ "libelle": "Redevance SXS Gestion trésorerie SAGE", "detail": "Communications bancaires", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -138,7 +138,7 @@ "libelle": "SAAS LIFEN Plateforme E-Santé Réceptions", "detail": "SMR / outil d'intégration dans le DPI depuis le DMP et/ou la MSS", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "New", "type": "SAAS", "compte": "613511", @@ -151,7 +151,7 @@ "libelle": "NOVRH", "detail": "SIRH (année pleine)", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "SAAS", "compte": "613511", @@ -164,7 +164,7 @@ "libelle": "SAAS Protection mails DARKTRACE", "detail": "Sécurité", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "New", "type": "SAAS", "compte": "613511", @@ -177,7 +177,7 @@ "libelle": "SAAS DUI Pole HEP", "detail": "Outil métier", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App HEP", "type": "SAAS", "compte": "613511", @@ -203,7 +203,7 @@ "libelle": "Infrastructures Data Center + Liens Internet", "detail": "DataCenter", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Loc. Infra Data Center", "compte": "613512", @@ -216,7 +216,7 @@ "libelle": "Liens internet Siège Data Center", "detail": "DataCenter", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Liens Internet", "compte": "626203", @@ -229,7 +229,7 @@ "libelle": "Abonnements Liaisons internet siège et Data Center", "detail": "DataCenter", "facturation": "Mensuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Liens Internet", "compte": "626203", @@ -242,7 +242,7 @@ "libelle": "Prestation TMA réglementaire", "detail": "Gestion du temps module TMA", "facturation": "Au fil de l'eau", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "Prestation", "compte": "628400", @@ -268,7 +268,7 @@ "libelle": "Maintenance applicatifs", "detail": "Compta-first, paye-fisrt, GAP-first...", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "Maintenance", "compte": "615610", @@ -294,7 +294,7 @@ "libelle": "Maintenance OSIDOC (A RESILIER)", "detail": "Gestion des contrats", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "App global", "type": "Maintenance", "compte": "615610", @@ -307,7 +307,7 @@ "libelle": "Maintenance FLEXICLOUD", "detail": "Connexions aux serveurs du DataCenter", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Maintenance", "compte": "615610", @@ -320,7 +320,7 @@ "libelle": "Abonnement Solution de télémaintenance", "detail": "Prise de main distante pour équipe IT", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Maintenance", "compte": "615610", @@ -333,7 +333,7 @@ "libelle": "Maintenance WATCHGUARD", "detail": "Sécurité /Pare-feux renouvellement des pare-feux tous les 5 ans", "facturation": "Au fil de l'eau", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -346,7 +346,7 @@ "libelle": "Maintenance EPDR WG", "detail": "Sécurité / Anti-virus", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -359,7 +359,7 @@ "libelle": "Maintenance VEEAM", "detail": "DataCenter / Sauvegardes machines + Sauvegardes 0365", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Maintenance", "compte": "615610", @@ -372,7 +372,7 @@ "libelle": "Maintenance DARKTRACE", "detail": "Sécurité / Inteligence artificielle surveillance réseau", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -385,7 +385,7 @@ "libelle": "Maintenance DARKTRACE ANTIGENA", "detail": "Sécurité / Inteligence artificielle surveillance réseau", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Sécurité", "type": "Maintenance", "compte": "615610", @@ -398,7 +398,7 @@ "libelle": "Budget Petit matériel et Autres dépenses", "detail": "Divers matériels", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "Infogérance", "type": "Petits matériels", "compte": null, @@ -424,7 +424,7 @@ "libelle": "Maintenance GAMMEO", "detail": "GMAO", "facturation": "Annuelle", - "mode_ventilation": "Prorata classe 6", + "mode_ventilation": "Prorata C 6", "categorie": "New", "type": "Maintenance", "compte": null, diff --git a/client/src/pages/DsiOpex.tsx b/client/src/pages/DsiOpex.tsx index 227078b..18c03dc 100644 --- a/client/src/pages/DsiOpex.tsx +++ b/client/src/pages/DsiOpex.tsx @@ -493,14 +493,14 @@ export default function DsiOpex() { const CATEGORIES_FILTER = useMemo(() => ['Toutes', ...categoriesPresentes], [categoriesPresentes]); - // Basculer le mode de ventilation d'une ligne (Prorata classe 6 ↔ Manuel) + // Basculer le mode de ventilation d'une ligne (Prorata C 6 ↔ Manuel) const handleToggleVentilation = useCallback((id: string) => { if (isValidated) return; setOpexState(prev => ({ ...prev, lignes: prev.lignes.map(l => l.id === id ? { ...l, - mode_ventilation: (l.mode_ventilation === 'Manuel') ? 'Prorata classe 6' : 'Manuel', + mode_ventilation: (l.mode_ventilation === 'Manuel') ? 'Prorata C 6' : 'Manuel', } : l), })); setIsDirty(true); @@ -1091,10 +1091,10 @@ export default function DsiOpex() { Catégorie - Type Facturation + Ventilation + {showDetails && Type} {showDetails && Compte} - {showDetails && Ventilation} Budget N-1 @@ -1138,31 +1138,31 @@ export default function DsiOpex() { {ligne.categorie} - {ligne.type || '—'} {ligne.facturation || '—'} + {/* Ventilation — toujours visible (affichage normal) */} + + {isValidated ? ( + {ligne.mode_ventilation === 'Manuel' ? 'Manuel' : 'Prorata C 6'} + ) : ( + + )} + + {/* Type — visible uniquement en mode détails */} + {showDetails && {ligne.type || '—'}} {showDetails && {ligne.compte || '—'}} - {showDetails && ( - - {isValidated ? ( - {ligne.mode_ventilation || 'Prorata classe 6'} - ) : ( - - )} - - )} {formatNum(ligne.budget_n1)} @@ -1327,7 +1327,7 @@ export default function DsiOpex() { ? 'text-blue-700 bg-blue-50/60 border-b-2 border-blue-400' : 'text-emerald-700 bg-emerald-50/60 border-b-2 border-emerald-400' }`} - title={`${ligne.libelle} — ${isManuel ? 'Saisie manuelle' : 'Prorata classe 6'} — ${formatEuros(ligne.montant)}`} + title={`${ligne.libelle} — ${isManuel ? 'Saisie manuelle' : 'Prorata C 6'} — ${formatEuros(ligne.montant)}`} > {ligne.libelle.length > 18 ? ligne.libelle.slice(0, 16) + '…' : ligne.libelle}