refactor(datamart): added in 2 new queroes

This commit is contained in:
2025-12-30 08:43:03 -06:00
parent 461acb2b16
commit 09f16f4e62
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
export const featureCheck = `
SELECT count(*)
FROM [test2_AlplaPROD2.0_Read].[support].[FeatureActivation]
where feature in (108,7)
`;
/*
as more features get activated and need to have this checked to include the new endpoints add here so we can check this.
108 = waste
7 = warehousing
*/

View File

@@ -0,0 +1,10 @@
export const forecastData = `
SELECT format(cast(RequirementDate as date),'M/d/yyyy') as requirementDate
,ArticleHumanReadableId
,CustomerArticleNumber
,ArticleDescription
,Quantity
FROM [test1_AlplaPROD2.0_Read].[forecast].[Forecast]
where DeliveryAddressHumanReadableId = [customer]
order by RequirementDate
`;