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:
    The name of the VAT calculator.
    The description of the VAT calculator.
    The status of the VAT calculator JavaScript. The status can be Active or Inactive.
    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.