From 7532c89ae2b3bc5397e6f601d4332d93344dc56d Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Sun, 13 Apr 2025 08:28:53 -0500 Subject: [PATCH] test(ppoo): added inn query for ppoo --- .../sqlServer/querys/warehouse/ppooQuery.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/services/sqlServer/querys/warehouse/ppooQuery.ts diff --git a/server/services/sqlServer/querys/warehouse/ppooQuery.ts b/server/services/sqlServer/querys/warehouse/ppooQuery.ts new file mode 100644 index 0000000..df3f7ff --- /dev/null +++ b/server/services/sqlServer/querys/warehouse/ppooQuery.ts @@ -0,0 +1,13 @@ +export const ppooQuery = ` +select MachineLocation, +[RunningNumber], +ArticleHumanReadableId, +ArticleDescription, +convert(Date, ProductionDay) as productionDay, +ProductionDate +FROM [test1_AlplaPROD2.0_Reporting].[reporting_productionControlling].[ScannedUnit] (nolock) + +where [RunningNumber] in (select Lfdnr from AlplaPROD_test1.dbo.V_LagerPositionenBarcodes (nolock) where IdLagerAbteilung = 00000) + +order by ProductionDate +`;