Fix Forecast Period discrepancy by excluding month filter from seasonality data

This commit is contained in:
Christian Vidal Wolf
2026-01-28 16:38:06 +01:00
parent 0ea94aefd1
commit bc6ec6dff8
+2 -1
View File
@@ -233,7 +233,8 @@ const App: React.FC = () => {
// Filter rawData to respect customer selections but keep all years (2025 for seasonality, 2026 for actuals)
const forecastRelevantData = filterData(rawData, {
...filters,
year: [] // Ensure we don't filter out 2025/2026 if a single year is selected in UI
year: [], // Ensure we don't filter out 2025/2026 if a single year is selected in UI
month: [] // EXCLUDE month filtering to preserve seasonality calculation in calculateForecastViewData
});
handleForecastFetch(forecastRelevantData, rawData, filters);
}