SELECT
T0.[DocNum] as ‘Delivery Note No.’,
T0.[DocDate],T0.[DocDueDate] as ‘Delivery Date’,
T0.[CardName] as ‘Customer Name’,
T1.[ItemCode],
T1.[Dscription],
T1.[Quantity]
FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.[DocDate] =DATEADD(DAY, -1, CONVERT(char,GETDATE(),101))
order by T0.[CardName] , T0.[DocDate]
T0.[DocNum] as ‘Delivery Note No.’,
T0.[DocDate],T0.[DocDueDate] as ‘Delivery Date’,
T0.[CardName] as ‘Customer Name’,
T1.[ItemCode],
T1.[Dscription],
T1.[Quantity]
FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.[DocDate] =DATEADD(DAY, -1, CONVERT(char,GETDATE(),101))
order by T0.[CardName] , T0.[DocDate]
No comments:
Post a Comment