debug: Add CPI comparison logging in both tabs

Logs CPI values in both ExecutiveSummaryTab and DimensionAnalysisTab
to identify where the mismatch occurs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
sujucu70
2026-01-23 11:51:08 +01:00
parent 20e9d213bb
commit a48aca0a26
2 changed files with 26 additions and 0 deletions

View File

@@ -427,6 +427,9 @@ function UnifiedKPIBenchmark({ heatmapData }: { heatmapData: HeatmapDataPoint[]
: 0)
: (totalCostVolume > 0 ? totalAnnualCost / totalCostVolume : 0);
// DEBUG: Log CPI calculation
console.log('🔍 ExecutiveSummaryTab CPI:', `${cpi.toFixed(2)}`, { hasCpiField, totalCostVolume });
// Volume-weighted metrics
const operacion = {
aht: aht,