Share via


TaxPost::newForSourceTypeWithTaxCalculation Method [AX 2012]

Retrieves a new derived TaxPost record that is based on the transaction.

Syntax

server public static TaxPost newForSourceTypeWithTaxCalculation(
    TaxSourceType _sourceType, 
    Object _initializationClass, 
    NoYes _post, 
    TaxCalculation _taxCalculation)

Run On

Server

Parameters

  • _initializationClass
    Type: Object Class
    The initialization class for the given transaction.
    This is a different class for each transaction.
  • _post
    Type: NoYes Enumeration
    A Boolean value that specifies whether the TaxTrans and Ledger entries will be made.
  • _taxCalculation
    Type: TaxCalculation Class
    The tax will post using the tax lines in the table that are specified by the _taxCalculation parameter.

Return Value

Type: TaxPost Class
The appropriate TaxPost record that is based on the calling transaction.

Remarks

The instance uses the TaxUncommitted records to post.

See Also

Reference

TaxPost Class