Help for sales tax

zuihuazuihua Member Posts: 43
edited 2010-01-21 in Dynamics AX
Hi guys:

I need to calculate the sales tax like below(I used AX 2009):

Frieght invoice amount 100, sales tax 7%
after calculation, got the freight 93, the tax 7.

How can I setup in system to get this?

Thansk in advance

Comments

  • MikerMiker Member Posts: 105
    Hi, you should understand difference between net and gross amount.
    In your case amount 100 = 93+7
    for example, for more info read display methods on salesLine LineAmount and lineAmountExclTax
    AmountCur  lineAmountExclTax(TransDate transDate = systemdateget(), boolean _rounded = true)
    {
        AmountCur       lineAmount;
        ;
    
        lineAmount = this.LineAmount;
    
        if (this.inclTax())
        {
            lineAmount = this.amountExclTax(lineAmount, this.SalesPurchQty, transDate, _rounded);
        }
    
        return lineAmount;
    }
    
    client server
    AmountMST lineAmountMST(TransDate               exchRateDate            = systemdateget(),
                            ExchRate                exchRate                = 0,
                            ExchrateSecondary       exchrateSecondary       = 0,
                            ExchRatesTriangulation  exchRatesTriangulation  = UnknownNoYes::Unknown)
    
    {
        return this.amountMST(this.LineAmount,exchRateDate, exchRate, exchrateSecondary, exchRatesTriangulation);
    }
    
    going to Europe
  • zuihuazuihua Member Posts: 43
    Hi Miker,

    Thank you very much.

    Now I know how to setup it
    Setup the sales tax code with origin "Calculated percentage of net amount", when post invoice on the PO, setup the price including the sales tax.
Sign In or Register to comment.