refactor(datamart): added in 2 new queroes
This commit is contained in:
12
lstV2/server/services/sqlServer/querys/misc/featureCheck.ts
Normal file
12
lstV2/server/services/sqlServer/querys/misc/featureCheck.ts
Normal 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
|
||||||
|
*/
|
||||||
10
lstV2/server/services/sqlServer/querys/psiReport/forecast.ts
Normal file
10
lstV2/server/services/sqlServer/querys/psiReport/forecast.ts
Normal 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
|
||||||
|
`;
|
||||||
Reference in New Issue
Block a user