This is sample Code to get Sales order Total Value in Axapta. You can try this job in Your Ax environment to check all vales . It will work well with open and Invoiced status sales order I hope it will help you and save your lot of time.    static void SalesTotalAmountJOb(Args _args)      {        SalesTotals salesTotals;        SalesTable salesOrderTable;        SalesLine salesLine;        TaxAmountCur salesAmt,taxAmount,amt1,discountAmt,totcharges,totOfOrder,contributionRatio;        Tax tax;        ;        salesOrderTable = SalesTable::find("TD_SO_00069218");        salesLine = SalesLine::find(salesOrderTable.SalesId);        salesTotals = SalesTotals::construct(salesOrderTable);        tax = Tax::construct(NoYes::No);        salesAmt  = salesTotals.totalBalance();        taxAmount  = salesTotals.totalTaxAmount();        discountAmt = salesTotals.totalEndDisc();        totcharges = salesTotals.totalMarkup();        totOfOrder = salesTotals.totalAmount();        contribut...
Technical Tutorials x++,tips on issues or troubleshooting On Ax ERP ,Microsoft Dynamics 365,Ax 2012,Microsoft , U.S.,Business Software solution.