Article Details
Id:15785
Product:finPOWER Connect
Type:NEW
Version:3.01.10
Opened:06/12/2018
Closed:09/01/2019
Released:05/02/2019
Job: J021644

Account Direct Debit Processes; add script events

Process Direct Debits now includes an event script.

A script of type "Object Events", object "AccountDirectDebits" should be created to handle Direct Debit events. After a script has been created, it must be configured under Global Settings, Accounts, Scripts page, "AccountDirectDebits" event script.

The script can handle two 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.

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, the finAccountDirectDebit object now includes a "UserFlag" property. This can be set in the ExecuteCommitPre script and will update the Bank and Account Transactions created.

Note, when combining Direct Debits for the same Client, if the UserFlag is set, Transactions will not be combined unless the UserFlag is the same.