on 05-27-2015 2:52 PM
Hello All,
One of my client has a requirement, he needs to check every week if payment is received for all invoices having "Cash Against Delveiry" payment term.
This payment terms is fixed at at customer master data.
Hi Hari,
Kindly use this query
select v.DocNum ,v.DocDate ,v.CardCode ,v.CardName ,v.DocTotal ,v.PaidToDate 'Amount received'
,CASE when v.DocTotal = v.PaidToDate then 'Fully received' when v.PaidToDate>0 then 'Partially Received' else 'Not Received' end Status
from OINV v inner join OCTG g on v.GroupNum =g.GroupNum
where g.PymntGroup ='Cash Against Delveiry' and v.CANCELED='N' and v.DocDate>=[%0] and v.DocDate<=[%1]
Regards,
BHARATHIRAJA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari,
Check this query,
select v.DocNum ,v.DocDate ,v.CardCode ,v.CardName ,v.DocCur 'Currency',v.DocRate 'Exchange rate',v.DocTotal,v.DocTotalFC 'Foreign Currency Total' ,v.PaidToDate 'Amount received'
,CASE when v.DocTotal = v.PaidToDate then 'Fully received' when v.PaidToDate>0 then 'Partially Received' else 'Not Received' end Status
from OINV v inner join OCTG g on v.GroupNum =g.GroupNum
where g.PymntGroup ='Cash Against Delveiry' and v.CANCELED='N' and v.DocDate>=[%0] and v.DocDate<=[%1]
Regards,
BHARATHIRAJA
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.