fix(data-access): correct self-referential SQL in WorkCenter filter

The WHERE clause was comparing Code to itself instead of the aliased
table reference, which would always be true.
This commit is contained in:
Joseph Doherty
2026-01-06 14:12:07 -05:00
parent 34daf6a83b
commit d4135e8ad3
67 changed files with 8520 additions and 12 deletions
+14
View File
@@ -0,0 +1,14 @@
-- WorkOrderTime Full Query
-- Source: JDESTAGE.F31122_VIEW
-- Destination: WorkOrderTime_Curr
-- Schedule: Mass/Daily/Hourly
SELECT wot.UNIQUEKEYIDINTERNAL_WTUKID AS UniqueID,
TRIM(wot.COSTCENTERALT_WTMMCU) AS BranchCode,
wot.DOCUMENTORDERINVOICEE_WTDOCO AS WorkOrderNumber,
wot.SEQUENCENOOPERATIONS_WTOPSQ AS StepNumber,
wot.ADDRESSNUMBER_WTAN8 AS AddressNumber,
wot.DTFORGLANDVOUCH1_WTDGL AS GlDate,
wot.DATEUPDATED_WTUPMJ AS DateUpdated,
wot.TIMEOFDAY_WTTDAY AS TimeUpdated
FROM JDESTAGE.F31122_VIEW wot