diff --git a/client/src/pages/DsiOpex.tsx b/client/src/pages/DsiOpex.tsx
index 31c34f6..6d1b080 100644
--- a/client/src/pages/DsiOpex.tsx
+++ b/client/src/pages/DsiOpex.tsx
@@ -859,6 +859,7 @@ export default function DsiOpex() {
|
+ Tendance |
Répartition |
{!isValidated && | }
@@ -917,6 +918,41 @@ export default function DsiOpex() {
/>
)}
+
+ {(() => {
+ const n1 = ligne.budget_n1;
+ const n = ligne.montant;
+ if (!n1 || n1 === 0) {
+ return n > 0
+ ? Nouveau
+ : —;
+ }
+ const diff = n - n1;
+ const pctVar = (diff / n1) * 100;
+ if (Math.abs(pctVar) < 2) {
+ return (
+
+ ≈
+ stable
+
+ );
+ } else if (diff > 0) {
+ return (
+
+
+ +{pctVar.toFixed(1)}%
+
+ );
+ } else {
+ return (
+
+
+ {pctVar.toFixed(1)}%
+
+ );
+ }
+ })()}
+ |
|