fix(label query): fixes to only pull in active layouts

This commit is contained in:
2025-09-09 21:19:39 -05:00
parent a6920d7cd8
commit 99ecf52218

View File

@@ -21,7 +21,7 @@ select ext.Barcode
,RunningNumber as runnungNumber ,RunningNumber as runnungNumber
,SsccEanRunningNumber as externalRunningNumber ,SsccEanRunningNumber as externalRunningNumber
,ArticleHumanReadableId ,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 ,case when EinlagerungsMengeSum IS NULL then 'notOnStock' else 'onStock' end as stockStatus
from [test1_AlplaPROD2.0_Read].[labelling].[ExternalLabel] (nolock) as ext from [test1_AlplaPROD2.0_Read].[labelling].[ExternalLabel] (nolock) as ext