From 9d0db71f6a7f673061ce77194a79568fc0eceffe Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Thu, 15 Jan 2026 13:28:18 -0600 Subject: [PATCH] fix(datamart): psiPlanning was looking at thertical but a rare case this would look at last years da and be missed and not pull correct data, switched to plan end --- .../services/dataMart/controller/psiPlanningDataImproved.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lstV2/server/services/dataMart/controller/psiPlanningDataImproved.ts b/lstV2/server/services/dataMart/controller/psiPlanningDataImproved.ts index 858d2d4..fd1c9a5 100644 --- a/lstV2/server/services/dataMart/controller/psiPlanningDataImproved.ts +++ b/lstV2/server/services/dataMart/controller/psiPlanningDataImproved.ts @@ -65,7 +65,7 @@ SELECT ,[ArticleAlias] FROM [test1_AlplaPROD2.0_Read].[productionScheduling].[ProductionLot] with (nolock) - where TheoreticEnd between @StartDate and @EndDate + where PlanEnd between @StartDate and @EndDate and ArticleHumanReadableId in ([articles]) and PublishState = 1 order by PlanStart @@ -157,6 +157,7 @@ const splitProduction = (runs: any) => { QTYPerDay: parseInt(qty.toFixed(0)), PalDay: parseFloat(pal.toFixed(2)), finished: e.ProductionLotState === 3 ? 1 : 0, + cavities: e.Cavities, //prodDuration, }); }