Article Details
Id:14528
Product:finPOWER Connect
Type:NEW
Version:3.00.06
Opened:28/04/2017
Closed:01/05/2017
Released:29/06/2017
Job: J018929

Accounting Period Close; new scripting events added

The Accounting Period Close wizard now includes scripting events.

A script of type "Object Events", object "AccountingPeriodClose" should be created to handle Accounting Period Close events. After a script has been created, it must be configured under Global Settings, Accounts, Scripts page, "AccountingPeriodClose" 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 this event you can check the property "AccountingPeriodPk" to see the Pk of the newly created Accounting Period record.