Article Details
Id:20121
Product:finPOWER Connect
Type:NEW
Version:4.00.02
Opened:23/11/2022
Closed:29/03/2023
Released:27/06/2023
Job: J030065

Account Minimum Payment Change; now supports scripting

Account Minimum Payment Change wizard now includes scripting events.

A script of type "Object Events", object "AccountMinimumPaymentChange" should be created to handle events. After a script has been created, it must be configured under Account Types, Scripts page, "MinimumPaymentChange" event script.

The script can handle the following events:

  • ExecuteCommitPre
    • Runs at the start of ExecuteCommit and can be used to validate and tweak values.
    • Return False, with an error message, to cancel the Commit.
  • ExecuteCommitPreInTransaction
    • Runs during ExecuteCommit, after a Database Transaction has begun but before any work has started.
    • It can be used much like the ExecuteCommitPre event.
  • 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.
  • ExecuteCommitPost
    • Runs at the end of ExecuteCommit.
    • Since the Database Transaction is complete use with caution. Any failure here will not affect the overall Commit.
    • If it fails the ExecuteCommit function returns a warning and this is displayed in the wizard.

Note, in addition a new "Tag" property has been added to the finAccountMinimumPaymentChange object.