Article Details
Id:14552
Product:finPOWER Connect
Type:NEW
Version:3.00.06
Opened:10/05/2017
Closed:10/05/2017
Released:29/06/2017
Job: J018982

Close Accounts wizard; new property added to Business Layer to assist scripting

A new property has been added to the Business Layer to assist scripting in the Close Accounts wizard.

The property finAccountClose.IsAutomaticClose will be True if it is being called from the Close Accounts wizard, i.e. the finAccountAutomaticClose object. The finAccountClose object is used when loading/ refreshing Accounts and committing the Closes.

This allows specific processing to be done for automatic closes, e.g. to clear the fee in the "CloseCalculate" event of a Close.

Case "CloseCalculate"
  ' Account Close has been calculated and can now be overridden.
  AccountClose = DirectCast(source, finAccountClose)

  If AccountClose.IsAutomaticClose Then
    AccountClose.FeeValue = 0
  End If