Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7790

Linking ORIN to ORDN

$
0
0

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 INV1 T0 ON T2.BaseEntry = T0.DocEntry AND T2.BaseType = 13 AND T2.BaseLine = T0.LineNum

 

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


Viewing all articles
Browse latest Browse all 7790

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>