on 04-21-2007 6:45 AM
Dear sir ,
yesterday u r sending following query but we want link 'ORCT' ( incoming payment ) table how can we link this table with 'OINV'
The following query will list the invoices that are overdue as at today's date:
select
DocNum, CardCode, CardName, DocDate, DocDueDate
from
OINV
where
datediff(dd, DocDueDate, getdate()) >= 0
and CANCELED = 'N'
and PaidToDate < DocTotal
regards ,
vishal
select
...
from
OINV t0
left join RCT2 t1 on t1.DocEntry = t0.DocEntry and t1.InvType = 13
left join ORCT t2 on t1.DocNum = t2.DocNum
left join ORCT t2 on t1.DocNum = t2.DocNum - looks incorrect, but it's true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
10 | |
6 | |
3 | |
3 | |
3 | |
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.