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

Help With Query To Check Status Of Sales Order

$
0
0

Hello All

I have written a query that checks all sales orders and only displays sales orders that have a UDF stage as 'Pending'

 

The query works fine, but I need the query to display the 'Total Before Discount' from the sales order

 

My problem is I can't find this anywhere in the table 'ORDR'28-01-2015 12-26-07 PM.png

 

Any help would be very much appreciated

 

Thanks in advance

 

The query I wrote is below

 

SELECT T0.[DocNum] as 'S/O No',

T0.[CardName],

T0.[DocDate],

T0.[NumAtCard] as 'Cust Ord No',

T0.[U_Desc],

T0.[ ] ------------> I need the 'Total Before Discount to be displayed here

FROM ORDR T0

WHERE T0.[U_DRAFTNO] = 'App3'

GROUP BY T0.[DocNum], T0.[CardName], T0.[DocDate], T0.[NumAtCard], T0.[U_Desc]

ORDER BY T0.[DocDate]

 

Thanks and Regards

Rahul


Viewing all articles
Browse latest Browse all 9164

Trending Articles



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