on 10-29-2015 11:25 AM
I create query to display invoices based on delivery note
the result are incorrect
can someone tell me what is the problem?
select T0.DocNum,T0.DocDate,T0.CardCode ,T0.CardName ,T0.DocTotal ,T3.DocNum
from oinv T0 inner join INV1 T1 on T0.DocEntry=T1.DocEntry
inner join DLN1 T2 on T1.BaseRef=T2.DocEntry
inner join ODLN T3 on T3.DocEntry=T2.DocEntry
thank you
Elad
Hi
the problem is that your connection between dln1 and inv1 is not the correct field
you should use this query :
T0.DocNum,T0.DocDate,T0.CardCode ,T0.CardName ,T0.DocTotal ,T3.DocNum
oinv T0 inner join INV1 T1 on T0.DocEntry=T1.DocEntry
join DLN1 T2 on T1.BaseEntry=T2.DocEntry
join ODLN T3 on T3.DocEntry=T2.DocEntry
shachar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear all,
how can I link ORIN and OINV in case of relation based only on related document link?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
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.