TaxPost::newForSourceType Method [AX 2012]
Retrieves a newly derived TaxPost record based on the transaction.
Syntax
server public static TaxPost newForSourceType(
TaxSourceType _sourceType,
Object _initializationClass,
NoYes _post)
Run On
Server
Parameters
- _sourceType
Type: TaxSourceType Enumeration
The type of the transaction posting taxes.
- _initializationClass
Type: Object Class
The initialization class for the specified transaction.
This is a different class for each transaction.
- _post
Type: NoYes Enumeration
true if the TaxTrans and Ledger records will be created; false if it will not post.
Return Value
Type: TaxPost Class
The appropriate TaxPost instance based on the calling transaction.