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

Re: Incoming and invoice Query?

$
0
0

Hi

 

Try this

 

SELECT Distinct T0.[CardName], T0.[CardCode], T0.PayMth,

T0.[DocDueDate],  T0.[Canceled], T1.SumApplied,T2.CheckNum,

T1.[DocEntry]

FROM ORCT T0  INNER JOIN RCT2 T1 ON T0.DocNum = T1.DocNum

INNER JOIN RCT1 T2 ON T0.DocNum = T2.DocNum

WHERE  T1.[DocEntry] In (SELECT Distinct [DocEntry] FROM RCT2 WHERE InvType = 13

Group By [DocEntry] having count([DocEntry]) > 1) AND T0.CheckSum > 0

ORDER BY T1.[DocEntry]


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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