Skip to content
Permalink
Browse files

Added OpenDeliveries and OpenOrderLines

  • Loading branch information...
roguelj committed Oct 4, 2019
1 parent 6a701df commit de731b9a6a5e72e21ab6e93b29ac4d225f4c789b
Showing with 39 additions and 0 deletions.
  1. +19 −0 OpenDeliveries.sql
  2. +20 −0 OpenOrderLines.sql
@@ -0,0 +1,19 @@
SELECT
T0.[DocNum],
T0.[DocDate],
T0.[NumAtCard],
T0.[CardCode],
T0.[CardName],
T1.[ItemCode],
T1.[WhsCode],
T1.[Quantity],
T1.[OpenQty],
T1.[ShipDate],
T2.[SlpName]
FROM
[dbo].[ODLN] T0
INNER JOIN [dbo].[DLN1] T1 ON T0.[DocEntry] = T1.[DocEntry]
LEFT JOIN [dbo].[OSLP] T2 ON T1.[SlpCode] = T2.[SlpCode]

WHERE
T1.[LineStatus] !='C'
@@ -0,0 +1,20 @@
SELECT
T0.[DocNum],
T0.[DocDate],
T0.[NumAtCard],
T0.[CardCode],
T0.[CardName],
T1.[ItemCode],
T1.[WhsCode],
T1.[Quantity],
T1.[OpenQty],
T1.[ShipDate],
T2.[SlpName]

FROM
[dbo].[ORDR] T0
INNER JOIN [dbo].[RDR1] T1 ON T0.[DocEntry] = T1.[DocEntry]
LEFT JOIN [dbo].[OSLP] T2 ON T1.[SlpCode] = T2.[SlpCode]

WHERE
T1.[LineStatus] !='C'

0 comments on commit de731b9

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