From 152b5c0628851113f800d7661be9a5178679ff4d Mon Sep 17 00:00:00 2001 From: sujucu70 Date: Fri, 23 Jan 2026 14:09:12 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Use=20airlines=20benchmark=20(=E2=82=AC3?= =?UTF-8?q?.50)=20for=20CPI=20economic=20impact=20calculation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed CPI_TCO from €2.33 to €3.50 to match the airlines p50 benchmark used in the rest of the dashboard. This ensures consistent impact calculations. Co-Authored-By: Claude Opus 4.5 --- frontend/components/tabs/DimensionAnalysisTab.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/tabs/DimensionAnalysisTab.tsx b/frontend/components/tabs/DimensionAnalysisTab.tsx index b2c2156..04a09f9 100644 --- a/frontend/components/tabs/DimensionAnalysisTab.tsx +++ b/frontend/components/tabs/DimensionAnalysisTab.tsx @@ -61,8 +61,8 @@ function generateCausalAnalysis( annualizationFactor = 365 / daysCovered; } - // v3.11: CPI consistente con Executive Summary - const CPI_TCO = 2.33; // Benchmark para cálculos de impacto cuando no hay CPI real + // v3.11: CPI consistente con Executive Summary - benchmark aerolíneas p50 + const CPI_TCO = 3.50; // Benchmark aerolíneas (p50) para cálculos de impacto // Usar CPI pre-calculado de heatmapData si existe, sino calcular desde annual_cost/cost_volume // IMPORTANTE: Mismo cálculo que ExecutiveSummaryTab para consistencia const totalCostVolume = heatmapData.reduce((sum, h) => sum + (h.cost_volume || h.volume), 0);