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'
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