Calculating the next renewal date

You can direct Infor Public Sector to calculate the renewal date for a license using a next renewal date formula. For example, you could write a formula that automatically sets the renewal date on a license one year after the license has been issued. You specify a next renewal date formula when you define a new license type. You must also select the Calculate Next Renewal Date check box for each milestone at which you want Infor Public Sector to calculate the renewal date.

Next renewal data formulas use the oLicenseApp object (an instance of the Hansen.CDR.BusinessLicense.iLicenseApplication class) to set NextRenewalDate to a date value. For more information about this object and for sample code, click the Information tab in the Formula Editor.

For example, this formula calculates the next renewal date based on the previous expiration date.


NextRenewalDate = oLicenseApp.ExpireDateTime.AddMonths(12)