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
- _taxGroup
Type: TaxGroup Extended Data Type
The sales tax group used for tax calculations.
- _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.
- _taxDate
Type: TransDate Extended Data Type
The as of date used to calculate the taxes.
- _sourceCurrencyCode
Type: CurrencyCode Extended Data Type
The currency on the transaction.
- _baseAmountCur
Type: AmountCur Extended Data Type
The line amount which includes taxes.
- _taxModuleType
Type: TaxModuleType Enumeration
The module for which we are calculating taxes.
- _baseQty
Type: TaxBase Extended Data Type
The quantity available on the line, used for unit calculations; optional.
- _baseUnit
Type: UnitOfMeasureSymbol Extended Data Type
The unit of quantity for the line. Used in unit calculations; optional.
- _itemId
Type: ItemId Extended Data Type
The item ID of the item on the line. Used for unit calculations; optional.
- _taxDirection
Type: TaxDirection Enumeration
A description of how the sales tax is stated; optional.
- _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.
- _exchRatesTriangulation
Type: ExchRatesTriangulation Extended Data Type
A Boolean value that specifies whether triangulation is required; 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.