Adding a JavaScript VAT calculator

You can use the VAT JavaScript (alco_vat_javascript) table to define JavaScript-based scripts that are linked to a VAT account. The Java Scripts are used to set an amount or account segment before it is applied to a line item that includes VAT data.

  1. Select Manage > Corporate Data > VAT JavaScript.
  2. Specify this information:
    Name
    The name of the VAT calculator.
    Description
    The description of the VAT calculator.
    Status
    The status of the VAT calculator JavaScript. The status can be Active or Inactive.
    Script
    The JavaScript for the VATcalculator. A sample script is displayed in this field.
  3. Specify an external key, if required. See, Creating an external key.
  4. Click Add to save the data.