From 99ecf52218556e048ba9262e74f9b3d020dea31d Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Tue, 9 Sep 2025 21:19:39 -0500 Subject: [PATCH] fix(label query): fixes to only pull in active layouts --- server/services/sqlServer/querys/warehouse/labelInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/sqlServer/querys/warehouse/labelInfo.ts b/server/services/sqlServer/querys/warehouse/labelInfo.ts index beea16c..5881637 100644 --- a/server/services/sqlServer/querys/warehouse/labelInfo.ts +++ b/server/services/sqlServer/querys/warehouse/labelInfo.ts @@ -21,7 +21,7 @@ select ext.Barcode ,RunningNumber as runnungNumber ,SsccEanRunningNumber as externalRunningNumber ,ArticleHumanReadableId -,case when LabelManagementHumanReadableId is null then (select HumanReadableId from [test1_AlplaPROD2.0_Read].[masterData].[LabelManagement] (nolock) where LabelMarkerId = 7) else LabelManagementHumanReadableId end as labelLayout +,case when LabelManagementHumanReadableId is null then (select HumanReadableId from [test1_AlplaPROD2.0_Read].[masterData].[LabelManagement] (nolock) where LabelMarkerId = 7 and Active = 1) else LabelManagementHumanReadableId end as labelLayout ,case when EinlagerungsMengeSum IS NULL then 'notOnStock' else 'onStock' end as stockStatus from [test1_AlplaPROD2.0_Read].[labelling].[ExternalLabel] (nolock) as ext