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

Re: help with field or table in payments

$
0
0

Please try below query

 

Select T0.DocDate, T0.DocNum, T0.DocTotal, T0.DocStatus, Sum(T1.SumApplied)[Incoming payment Sum],Count(T1.DocNum)[No of receipt]

from OINV T0

  Left Outer Join RCT2 T1 on T1.InvType= 13 and T0.DocEntry = T1.DocEntry

  Inner Join ORCT T2 on T1.DocNum = T2.DocEntry and T2.Canceled = 'N'

Where T0.CANCELED = 'N'

  and T0.DocDate>=[%0] and T0.DocDate<=[%1]

Group By T0.DocDate, T0.DocNum, T0.DocTotal, T0.DocStatus

 

Regards

Unnikrishnan


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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