Calculating an inspection schedule
You can direct Infor Public Sector to calculate when a follow-up inspection or reinspection is scheduled using a schedule date formula. For example, you could write a formula that automatically schedules a follow-up inspection on a nuisance violation one month after the initial inspection passed, or write a formula for a garbage violation that schedules a reinspection two days after the initial inspection failed. You specify a schedule date formula for a follow-up inspection or reinspection using Inspection Result Code.
Schedule date formulas use the oCase
object (an instance of the Hansen.CDR.CodeEnforcement.iCase
class) to set ScheduledDate
to a date value. For more information about this object and for sample code, click the Information tab in the Formula Editor.
Example
This formula automatically schedules a follow-up inspection 12 months from today.
ScheduledDate = ServerApplication.GetDateToday ().AddMonths(12)