fix(psi): correcrtions to account for the tiem offset in the psi

This commit is contained in:
2026-01-02 11:07:45 -06:00
parent 56934216f7
commit 1b59cdd3a4
7 changed files with 203 additions and 157 deletions

View File

@@ -89,9 +89,12 @@ r.[ArticleHumanReadableId]
,ea.JournalNummer
,[ReleaseConfirmationState]
,[PlanningState]
,format(r.[OrderDate], 'yyyy-MM-dd HH:mm') as OrderDate
,FORMAT(r.[DeliveryDate], 'yyyy-MM-dd HH:mm') as DeliveryDate
,FORMAT(r.[LoadingDate], 'yyyy-MM-dd HH:mm') as LoadingDate
--,format(r.[OrderDate], 'yyyy-MM-dd HH:mm') as OrderDate
,r.[OrderDate]
--,FORMAT(r.[DeliveryDate], 'yyyy-MM-dd HH:mm') as DeliveryDate
,r.[DeliveryDate]
--,FORMAT(r.[LoadingDate], 'yyyy-MM-dd HH:mm') as LoadingDate
,r.[LoadingDate]
,[Quantity]
,[DeliveredQuantity]
,r.[AdditionalInformation1]

View File

@@ -1,5 +1,5 @@
export const orderState = `
SELECT top(10000)
SELECT
CustomerOrderNumber
,r.CustomerReleaseNumber
, OrderState
@@ -21,6 +21,6 @@ CustomerOrderNumber
where
--h.CreatedByEdi = 1
r.ReleaseState > 0
r.ReleaseState >= 1
--and CustomerOrderNumber in ( '2358392')
`;

View File

@@ -1,5 +1,5 @@
export const forecastData = `
SELECT format(cast(RequirementDate as date),'M/d/yyyy') as requirementDate
SELECT RequirementDate as requirementDate
,ArticleHumanReadableId
,CustomerArticleNumber
,ArticleDescription