From c75b7c8d54f10763a874ecf7a8501dbc177a8e71 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Fri, 2 May 2025 07:52:58 -0500 Subject: [PATCH] test(fifo index): started process for fifo index --- .../dataMart/fifoIndex/shippedPallets.ts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 server/services/sqlServer/querys/dataMart/fifoIndex/shippedPallets.ts diff --git a/server/services/sqlServer/querys/dataMart/fifoIndex/shippedPallets.ts b/server/services/sqlServer/querys/dataMart/fifoIndex/shippedPallets.ts new file mode 100644 index 0000000..5a01016 --- /dev/null +++ b/server/services/sqlServer/querys/dataMart/fifoIndex/shippedPallets.ts @@ -0,0 +1,32 @@ +export const shippedPallets = ` +SELECT +--[IdJournalLieferPosition] +--,[IdJournalPosition] +--,[IdLadePlanung] +[Beleg] as lot +,[LfdNrJeArtikelKunde] as runningNr +,l.IdArtikelvarianten as av +,x.[Barcode] +,[ProduktionsDatum] +--,x.[Add_User] +--,x.[Add_Date] +--,x.[Upd_User] +--,x.[Upd_Date] +--,[IdJournalWarenPosition] +--,[LieferMenge] +--,x.[SSCC_ReserveZiffer] +--,[EAN_BasisNr] +--,[Guid] +--,[LieferEinheit] +--,x.[Bestrahlungsnummer] + FROM [AlplaPROD_test1].[dbo].[T_EAIJournalLieferPosition] x + + --where Barcode = '1000000000000000000000000000000001144380' + + left join + [AlplaPROD_test1].[dbo].[T_EtikettenGedruckt] l on + x.LfdNrJeArtikelKunde = l.LfdNr + + where x.Add_Date between getDate()-2 and getDate() + +`;