Custom Transaction Type Association with a SuiteTax Plug-in

With the SuiteTax plug-in, you can create logic that automatically calculates various tax amounts on individual sales or purchase custom transaction types. A plug-in implementation can calculate tax based on data that users enter in the standard or custom fields on the transaction instance entry form. Calculated tax can also originate from values entered in a custom UI created by using SuiteScript objects. For more details, see the SuiteTax documentation available to SuiteTax providers.

To use a plug-in implementation, you can configure the implementation to apply to one or more sales or purchase transaction types. After you complete the setup, configure the plug-in the same way you would for a standard transaction type. On the configuration page for the plug-in implementation, custom transaction types are listed with standard types.

In the SuiteTax plug-in, use the hidden customtype field to obtain information about a specific sales or purchase custom transaction type.

For example, you can use the customtype field to get the custom transaction script ID with the following code (which uses the SuiteScript N/record Module):

          customTransactionTypeID = customTransaction.getValue('customtype')
customTransactionType = record.load({ type: 'customtransactiontype', id: customTransactionTypeID
})
customTransactionType.getValue('scriptid') 

        

Related Topics

Custom Transactions
Benefits of Custom Transaction Types
Sales and Purchase Transaction Types Overview
Custom Transaction Type Setup
Creating and Editing Custom Transaction Types
Custom Transaction Type Association with a Custom GL-Lines Plug-in Implementation
Deleting Custom Transaction Types
Creating Sales and Purchase Custom Transaction Instances
Printing Custom Transaction Instances
Custom Transaction Types in Workflows

General Notices