Share via


Tax::baseAmountExclTaxRaw Method [AX 2012]

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

Syntax

server public static TaxBaseCur baseAmountExclTaxRaw(
    TaxGroup _taxGroup, 
    TaxItemGroup _taxItemGroup, 
    TransDate _taxDate, 
    CurrencyCode _sourceCurrencyCode, 
    AmountCur _baseAmountCur, 
    TaxModuleType _taxModuleType, 
   [TaxBase _baseQty, 
    UnitOfMeasureSymbol _baseUnit, 
    ItemId _itemId, 
    TaxDirection _taxDirection, 
    Percent _cashDiscPercent, 
    boolean _initTmpTaxWorkTrans, 
    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 to 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.
  • _initTmpTaxWorkTrans
    Type: boolean
    true if the passed in tax groups will be compared and codes that match will have corresponding records inserted into the TmpTaxWorkTrans table; false if the General Ledger will initialize the TmpTaxWorkTrans table. The General Ledger module would typically pass in false for this, as General Ledger, will initialize the TmpTaxWorkTrans table. Other modules should pass true; 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