Calculating the value of a building 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 filing fee of $50.00 plus an extra $5.00 for every $2000.00 of construction value. 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 oBuildingApp
object (an instance of the Hansen.CDR.Building.iBuildingApplication
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 + (oBuildingApp.DeclaredValuation.round
(oBuildingApp.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 (oBuildingApp.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 oBuildingApp.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.Building.IApplicationEmployee
For Each oApplicationEmployee in oBuildingApp.ApplicationEmployees
Value += oApplicationEmployee.TotalHours*10
Next oApplicationEmployee