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