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
@@ -0,0 +1,15 @@
-- WorkOrderComponent Full Query
-- Source: JDESTAGE.F3111_VIEW
-- Destination: WorkOrderComponent_Curr
-- Schedule: Mass/Daily/Hourly
SELECT woc.UNIQUEKEYIDINTERNAL_WMUKID AS UniqueID,
woc.DOCUMENTORDERINVOICEE_WMDOCO AS WorkOrderNumber,
TRIM(woc.LOT_WMLOTN) AS LotNumber,
TRIM(woc.BRANCHCOMPONENT_WMCMCU) AS BranchCode,
woc.COMPONENTITEMNOSHORT_WMCPIT AS ShortItemNumber,
woc.QUANTITYTRANSACTION_WMTRQT AS Quantity,
woc.DATEUPDATED_WMUPMJ AS DateUpdated,
woc.TIMEOFDAY_WMTDAY AS TimeUpdated
FROM JDESTAGE.F3111_VIEW woc
WHERE TRIM(woc.LOT_WMLOTN) IS NOT NULL