Calculating the value of a case fee

You can direct Infor Public Sector to calculate the value of a fee using a fee value formula. For example, you could write a formula that charges an abatement fee of $100.00 to correct a weeds violation, charges $150.00 to correct a trash violation, or charges $200.00 to correct an inoperable vehicle violation. You specify a fee value formula when you define a fee type. You first select Formula from the "Value" list in the Fee Type dialog box.

Fee value formulas use the oCase object (an instance of the Hansen.CDR.CodeEnforcement.iCase class) to set Value 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 sets the value of the fee based on the case type.

Value = 0

If (oCase.CaseType.CaseType.ToUpper = "NUISANCE") Then
  Value = 25
Else If (oCase.CaseType.CaseType.ToUpper = "PARKING") Then
  Value = 35
Else
  Value = 75
End If

This formula sets the value of a fee based on the priority level assigned the case.

Value = 0
If (oCase.Priority.Code.ToUpper = "LOW") Then
  Value =  50
Else If (oCase.Priority.Code.ToUpper = "MEDIUM") Then
  Value = 75
Else
  Value = 125
End If

This formula assesses a $15.00 per hour handling fee for work done on a case by an employee.

Value = 0
dim oCaseEmployee as Hansen.CDR.CodeEnforcement.ICaseEmployee
For Each oCaseEmployee in oCase.CaseEmployees
  Value += oCaseEmployee.TotalHours*15
Next oCaseEmployee