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:
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.
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.