Tax::baseAmountExclTax Method [AX 2012]

Calculates and retrieves the amount exclusive of tax for a journal line and should be used when the line amount includes taxes.

Syntax

server public static TaxBaseCur baseAmountExclTax(
    TaxGroup _taxGroup, 
    TaxItemGroup _taxItemGroup, 
    TransDate _taxDate, 
    CurrencyCode _sourceCurrencyCode, 
    AmountCur _baseAmountCur, 
    TaxModuleType _taxModuleType, 
   [TaxBase _baseQty, 
    UnitOfMeasureSymbol _baseUnit, 
    ItemId _itemId, 
    TaxDirection _taxDirection, 
    Percent _cashDiscPercent, 
    boolean _rounding, 
    AmountCur _cashDiscAmount, 
    ExchRatesTriangulation _exchRatesTriangulation, 
    ExchRate _exchRate, 
    ExchRate _exchRateSecond, 
    boolean _calculateAmountByUnit])

Run On

Server

Parameters

  • _taxItemGroup
    Type: TaxItemGroup Extended Data Type
    The item sales tax group used for tax calculations. This group will be compared with the sales tax groups to see which tax codes have to be calculated.
  • _cashDiscPercent
    Type: Percent Extended Data Type
    A Boolean value that specifies whether a cash discounts percentage is to be subtracted before taxes being calculated; optional.
  • _rounding
    Type: boolean
    If true, the value returned will be rounded according to the tax round off rules. If false, the value will be full precision. This should be false if the amount returned will be used as input to tax calculations; optional.
  • _cashDiscAmount
    Type: AmountCur Extended Data Type
    A Boolean value that specifies whether the cash discounts amount is to be subtracted before taxes being calculated. Typically, provide either percentage or amount, but not both; optional.
  • _exchRate
    Type: ExchRate Extended Data Type
    The value of the primary exchange rate that will be used for currency conversions between transactional and master currency; optional.
  • _exchRateSecond
    Type: ExchRate Extended Data Type
    The secondary exchange rate that will be used for currency conversions between transactional and master currency; optional.
  • _calculateAmountByUnit
    Type: boolean
    A Boolean value that specifies whether the "per unit" calculations will occur; optional.

Return Value

Type: TaxBaseCur Extended Data Type
The base amount exclusive of taxes.

See Also

Reference

Tax Class