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

Re: Help With Query To Check All Open PO's

$
0
0

Hi Rahul,

 

Try this first:

 

SELECT T0.[DocNum] as 'PO No', 

T0.[CardCode] as 'Supplier Code', 

T0.[CardName] as 'Supplier Name', 

T0.[DocDate],

T1.[ShipDate],

T1.[Currency] as 'Cur', 

T1.[Rate] as 'ExcH Rate', 

T1.[LineTotal] as 'Total In AUD', 

(T1.[LineTotal] * T1.[Rate]) as 'Total In FC', 

T1.[U_Comment], 

T0.[U_ShipType] 

FROM OPOR

T0 INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry

WHERE T0.[CardCode] = [%0] and T1.[LineStatus] = 'O' 

GROPU BY T0.[DocNum], T0.[CardCode], T0.[CardName], T0.[DocDate], T1.[ShipDate], T1[Currency], T1.[Rate], T1.[LineTotal], T1.[U_Comment], T0.[U_ShipType] 

ORDER BY T1.[ShipDate]

 

Thanks,

Gordon


Viewing all articles
Browse latest Browse all 8501

Trending Articles



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