Article Details
Id:11687
Product:finPOWER Connect
Type:NEW
Version:2.00.03
Opened:07/02/2014
Closed:24/02/2014
Released:04/03/2014
Job: J012831
High Importance

Account Payment Arrangements; Add Promises now supports scripting

The Account Payment Arrangement wizard, Add Promises button, now supports a script event to override the generation of Promises.

In addition, the existing "Object Events" script for object "Account", event names "PaymentArrangementCalculatePre" and "PaymentArrangementCommitPre" have been deprecated, insofar as the "Paste Template code" no longer includes these event names.

In preference you should use the new "AccountPaymentArrangementAdd" object type. This includes three events:

AddPromises
Runs when Promises are added. Set EventHandled to True to not run the standard code to add Promises. See the template code for more details.

CalculatePre
Runs before a calculation occurs. Return False to cancel the Calculation. This replaces the existing "PaymentArrangementCalculatePre" event for the "Account" object.

ExecuteCommitPre
Runs at the start of ExecuteCommit. Return False to cancel the Calculation. This replaces the existing "PaymentArrangementCommitPre" event for the "Account" object.