Skip to content
Permalink
Browse files

Added BatchInformation.sql

  • Loading branch information...
roguelj committed Oct 3, 2019
0 parents commit 6a701df3c6aa926532f4b1096b3099bc5c2e83b0
Showing with 20 additions and 0 deletions.
  1. +20 −0 BatchInformation.sql
@@ -0,0 +1,20 @@
SELECT
T0.[ItemCode],
T0.[DistNumber],
T0.[LotNumber],
T0.[Notes],
T1.[WhsCode],
T1.[Quantity],
T1.[CommitQty],
T2.[Location],
T0.[Status],
T3.[SWW]

FROM
[dbo].[OBTN] T0
LEFT OUTER JOIN [dbo].[OBTQ] T1 ON T0.[ItemCode] = T1.[ItemCode] AND T0.[SysNumber] = T1.[SysNumber]
INNER JOIN [dbo].[OBTW] T2 ON T0.[ItemCode] = T2.[ItemCode] AND T0.[SysNumber] = T2.[SysNumber] AND T1.[WhsCode] = T2.[WhsCode]
INNER JOIN [dbo].[OITM] T3 ON T0.[ItemCode] = T3.[ItemCode]

WHERE
T1.[Quantity] > 0

0 comments on commit 6a701df

Please sign in to comment.
You can’t perform that action at this time.