Calculating the quantity of a case fee
You can direct Infor Operations and Regulations to calculate the quantity of a fee using a fee quantity formula. For example, you could write a formula that charges $5.00 for each day a residence has high weeds in the front yard. 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 oCase
(an instance of the Hansen.CDR.CodeEnforcement.iCase
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 case:
If oCase.Inspections.Count > 1 Then
Quantity = oCase.Inspections.Count
Else
Quantity = 1
End If
This formula sets the quantity equal to the number of hearings performed on a case:
If oCase.Hearings.Count > 0 Then
Quantity = oCase.Hearings.Count
End If