Adding a JavaScript mileage calculator

You can use the Mileage JavaScript (alco_mileage_javascript) table to define the JavaScript-based mileage calculators used to set the mileage rate and the amount, before it is applied to a line item with a mileage data.

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