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

Re: Draft Sales Order Sum Doctotal

$
0
0

Hi Silent Knight,

 

Try this one:

 

SELECT SUM(ISNULL(T0.DocTotal,0)) AS OpenTotal

FROM (select * from ODRF WHERE ObjType='17' AND DocStatus <> 'C') T0

WHERE T0.CardCode=$[$4.0.0]

 

 

Just make sure you have set Customer Code already in the Sales Order before executing the query because of $[$4.0.0]

 

Thanks!


Viewing all articles
Browse latest Browse all 3354

Trending Articles



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