Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a new instance of the Tax class based on the transaction.
Syntax
server public static TaxCalculation newForSourceType(TaxSourceType _sourceType, Object _initializationClass)
Run On
Server
Parameters
- _sourceType
Type: TaxSourceType Enumeration
The type of the transaction to calcualate taxes.
- _initializationClass
Type: Object Class
The initialization class for the given transaction.
This is a different class for each transaction.
Return Value
Type: TaxCalculation Class
The correct Tax instance based on the calling transaction.