Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3189

Re: Sales vs Orders

$
0
0

Hi,

 

Try this query,

 

SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T3.[DocNum], T3.[DocDate], T2.[Quantity] FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] left join INV1 T2 on  T2.[BaseEntry]  = t0.docentry and  T2.[BaseLine]  =  T1.[LineNum] inner JOIN OINV T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T0.[DocDate] between [%0] and [%1] and T2.[BaseType] = 17

 

Thanks


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>