Calculating the value of a use application 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 a base fee of $150.00 plus an extra $25.00 if the application has a high priority. 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 oUseApp object (an instance of the Hansen.CDR.Use.iUseApplication 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 a fee as a combination of a $20.00 base value and 1% of the declared value of the work. The formula uses the round() method to round the value to two decimal places.


Value = 20 + (oUseApp.DeclaredValuation.round(oUseApp.DeclaredValuation,2)*.01)

This formula assesses one $50.00 fee for any construction associated with an industrial structure, and a $30.00 fee for all other occupancy types.


Value = 30
If (oUseApp.OccupancyType.Code.ToUpper = "INDUSTRIAL") Then
  Value = 50
End If

This formula assesses a $10.00 fee for applications that have a building area of 3000 square feet or smaller and assesses a $30.00 fee for larger areas.

Value = 0
If oUseApp.BuildingArea > 3000 Then
   Value = 30
Else
   Value = 10
End If

This formula assesses a $10.00 per hour handling fee for extra work done by any employee.


value = 0 
dim oApplicationEmployee as Hansen.CDR.UseApplication.IApplicationEmployee
For Each oApplicationEmployee in oUseApp.ApplicationEmployees
  Value += oApplicationEmployee.TotalHours*10
Next oApplicationEmployee