Calculating the quantity of a license fee

You can direct Infor Public Sector to calculate the quantity of a fee using a fee quantity formula. For example, you could write a formula that charges a fee for every vehicle a delivery service will use or for each child a daycare will enroll. You specify a fee quantity formula when you define a fee type. You first select Formula from the "Quantity" list in the Fee Type dialog box.

Fee quantity formulas use the oLicenseApp (an instance of the Hansen.CDR.BusinessLicense.iLicenseApplication class) object to set Quantity to a decimal value. For more information about this object and for sample code, click the Information tab in the Formula Editor.

Examples

This formula charges a fee once or a number of times equal to the number of inspections that have been added to the license:


Quantity = 1
If oLicenseApp.Inspections.Count > 1 Then
  Quantity = oLicenseApp.Inspections.Count
End If

This formula fixes the quantity equal to the number of reviews performed on an application:


Quantity = oLicenseApp.Reviews.Count