Calculating whether to add a periodic inspection schedule

You can use an AddOnCondition formula to calculate whether a periodic inspection schedule is added to a license. For example, you could write a formula that adds a schedule for a biannual health inspection for a restaurant.

AddOnCondition formulas use the oLicenseApp object (an instance of the Hansen.CDR.BusinessLicense.iLicenseApplication class) to set AddOnCondition to either True or False. For more information, and for sample code, click the Information tab in the Formula Editor.

Example

This formula adds a periodic inspection schedule if the application has a high priority:


AddOnCondition = False
	If oLicenseApp.Priority.Code = "HIGH" Then
AddOnCondition = True
	End If