Hi Everyone,
Kindly asking for assistance to produce a query linking ORIN to ORDN. I need to generate a report that displays all return tags and the credit notes associated with them. The report must have the date the return tag number, date created, date posted, customer name, credit note number, credit note date, and amount credited.
In the query I tried linking ORIN to INV1, INV1 to DLN1, and DLN1 to ORDN. I have the following tables listed below. The query will run without error, but it will return no results. Any help is greatly appreciated.
ORIN T1
INNER JOIN RIN1 T2 ON T1.DocEntry = T2.DocEntry
INNER JOIN DLN1 T3 ON T0.BaseEntry = T3.DocEntry AND T0.BaseType = 15 AND T0.BaseLine = T3.LineNum
INNER JOIN RDN1 T4 ON T4.BaseEntry = T3.DocEntry AND T4.BaseType = 15 AND T4.BaseLine = T3.LineNum
INNER JOIN ORDN T5 ON T5.DocEntry = T4.DocEntry