TaxEngines Interface
Your tax engine implements this interface. It contains methods for calculating tax, clearing in-memory entities from the previous call, and clearing legal references from the previous call.
blng
-
Learn more about the methods available with the TaxEngines interface.
Learn more about the methods available with the TaxEngines interface.
The TaxEngines interface includes these methods.
-
Sets the in-memory IDs, such as credit note IDs, debit note IDs, to null.
-
Sets the in-memory list of legal entities to null.
-
calculateTax(taxParametersInstance)
Returns the calculated tax for the specified
taxParametersInstanceparameter.
Sets the in-memory IDs, such as credit note IDs, debit note IDs, to null.
global static Void resetSObjectListofIds()
Type: Void
Sets the in-memory list of legal entities to null.
global static Void resetLegalEntityReferences()
Type: Void
Returns the calculated tax for the specified taxParametersInstance parameter.
global static Map<Id,TaxResults> calculateTax(TaxParameters taxParametersInstance)
taxParametersInstance: Type: TaxParameters
The taxParametersInstance parameter is populated based on the process that uses tax calculation. These examples show the sample values for each process.
Order is created
Bill Now or Invoice is created
Invoice is manually posted
Type: Map<Id,TaxResults>