Article Details
Id:11647
Product:finPOWER Connect
Type:NEW
Version:2.00.02
Opened:10/01/2014
Closed:27/01/2014
Released:05/02/2014
Job: J012721

Statement Generation; event scripting enhanced

The event scripting for Statement Generation has been enhanced.

The existing "Object Events" script for object "Account", event name "StatementProcess" has been deprecated, insofar as the "Paste Template code" no longer includes this event name.

In preference you should use the new "AccountStatement" object type. This includes two events:

GeneratePost
Runs after an Account has been loaded and can be used to adjust the Minimum Payment for example. This replaces the existing "StatementProcess" event for the "Account" object.

ExecuteCommitPostInTransaction
Runs during ExecuteCommit, after work has been completed but before the Database Transaction is committed. Use to implement additional functionality that must be part of the overall Commit.

In addition there is a new property on finAccountStatement "AccountLogPk". This can be used in the "ExecuteCommitPostInTransaction" events to examine the Account Log record created for the Statement