Share via


TaxCalculation::newForSourceTypeWithTaxUncommitted Method [AX 2012]

Retrieves a new instance of the Tax class based on the transaction. This constructor causes tax to use the TaxUncommitted table to load and persist taxes.

Syntax

server public static TaxCalculation newForSourceTypeWithTaxUncommitted(
    TaxSourceType _sourceType, 
    Object _initializationClass, 
    boolean _loadTaxUncommitted, 
    boolean _loadTaxTrans, 
   [boolean _maintainExistingTaxUncommitted])

Run On

Server

Parameters

  • _initializationClass
    Type: Object Class
    The initialization class for the given transaction.
    This is a different class for each transaction.
  • _loadTaxUncommitted
    Type: boolean
    A Boolean value that specifies whether during the construction to load the TaxUncommitted records into taxes TmpTaxWorkTrans buffer which enables most of the inquiry functions to work.
  • _maintainExistingTaxUncommitted
    Type: boolean

Return Value

Type: TaxCalculation Class
The correct Tax instance based on the calling transaction.

See Also

Reference

TaxCalculation Class