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

Re: A/R Invoice with OR Details

$
0
0

Hi,

 

Problem is in your joins. Try this query

 

SELECT T0.[DocDate], T0.[DocNum], T0.[CardName], T0.[DocTotal], T1.[DocDate], T1.[DocNum], T1.[CashSum]

FROM [OINV]  T0 left outer join RCT2 r2 on r2.DocEntry =t0.DocEntry left outer join  [ORCT]  T1 on t1.DocNum =r2.DocNum left outer join

JDT1 T2 on t2.TransId=t1.TransId

WHERE T0.[DocDate] between [%0] and [%1] and  T2.[OcrCode2] =[%2]

GROUP BY T0.[DocDate], T0.[DocNum], T0.[CardName],

T0.[DocTotal], T1.[DocDate], T1.[DocNum], T1.[CashSum]


Viewing all articles
Browse latest Browse all 10207

Trending Articles



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