Article Details
Id:9239
Product:finPOWER Connect
Type:NEW
Version:1.04.02
Opened:10/10/2011
Closed:11/10/2011
Released:25/10/2011
Job: J008313

Account Calculations; CalculateTermPre event script now be made to re-run calculations

If using the "CalculateTermPre" event in an Account Calculation script, there are some scenarios where the calculation needs to be run until the term no longer changes. This script event is called when the Account has an overriding Regular Payment, ie a Payment value has been entered into the Financial page of the New Account wizard.

For example, if you set the Interest Rate based upon the Term of the Account, the initial Term might be say 12 Months, but after the initial calculation the Term has been updated to 15 Months. Now your script may want to set the Interest Rate to a lower or higher rate and run again.

To achieve this you need to include in the script the line:

AccountCalc.CalculationTermReRun = True

When this setting is True, finPOWER Connect re-runs the calculation until the Term doesn't change, or 10 times, whichever comes first.