Triggering Tax Calculation through SuiteScript
If the SuiteTax feature is enabled, SuiteScript supports programmatic triggering of tax calculation for the following taxable transactions:
-
Bill
-
Bill Credit
-
Cash Refund
-
Cash Sale
-
Credit Card
-
Credit Memo
-
Estimate/Quote
-
Invoice
-
Opportunity
-
Purchase Order
-
Return Authorization
-
Sales Order
-
Vendor Return Authorization
Calculating Taxes with SuiteScript 2.0
The SuiteScript 2.0 N/record Module module includes the Record.executeMacro(options) method. A macro is a set of instructions to perform a particular task. For information, see Overview of Record Action and Macro APIs. When the SuiteTax feature is enabled, a tax calculation macro is available, called calculateTax.