cancel
Showing results for 
Search instead for 
Did you mean: 

Bill wise Collection Query

Former Member
0 Kudos

Hi ,

Need to create a bill wise collection statement in this format .

AR Invoice Doc NumCustomer  Name Posting Date DocTotalReceived AmountReceived Date Difference Between Received Date  &    Posting Date

Accepted Solutions (0)

Answers (2)

Answers (2)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Try:

SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocTotal], T0.[PaidToDate], T1.[DocDate], datediff(d, T0.[DocDate], T1.[DocDate]) as Days FROM OINV T0 left join ORCT T1 on T0.ReceiptNum  = t1.docnum

Thanks & Regards,

Nagarajan

Rafaee_Mustafa
Active Contributor
0 Kudos

Hi Nabil,

Please check this thread