Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

Re: AP Invoices without GRPO and PO

$
0
0

Hi,

 

Try:

 

SELECT Distinct T0.[DocNum] 'Invoice#', T3.[DocNum] 'GRPO#', T5.[DocNum] 'PO#', T0.[CardName], T0.[DocEntry]

FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry join PDN1 T2 on  T1.[BaseEntry]  = T2.docentry and T1.[BaseLine]  = T2.[LineNum] JOIN OPDN T3 ON T2.DocEntry = T3.DocEntry join POR1 T4 on T2.[BaseEntry]  = T4.docentry and  T2.[BaseLine]  = T4.[LineNum] JOIN OPOR T5 ON T4.DocEntry = T5.DocEntry

ORDER BY T0.[CardName]

 

Thanks,

Gordon


Viewing all articles
Browse latest Browse all 10548

Trending Articles



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