Article Details
Id:10270
Product:finPOWER Connect
Type:NEW
Version:1.06.00
Opened:04/07/2012
Closed:04/07/2012
Released:01/08/2012
Job: J009941

Payment Arrangements; enhancements for Wizard Validator scripts

The Payment Arrangement object has been enhanced with a number of properties that the Payment Arrangement wizard validator script can utilise.

To allow the default "Total" promises, under the Add Promise tab, to be set to a value other than the current Overdue value there are two new properties on the finPaymentArrangementAdd object. The properties are PromiseTotalOverride and PromiseTotalOverrideValue.

These can be set in the wizard validator script, so the default values in the wizard are updated. Sample code is shown below.

  Select Case eventId
    Case "TargetObjectChange"
      ' The target object source has been changed. Set any defaults or perform initialisation here
      With AccountPayArrangementAdd
        .PromiseTotalOverride=True
        .Account.GetBalanceOverdueContractual(.PromiseTotalOverrideValue)
        If .PromiseTotalOverrideValue < 0 Then .PromiseTotalOverrideValue = 0
      End With

In addition there is a property "OverdueHoldVisible" that can be set to False in the wizard validator script to hide the "Hold Overdue value?" checkbox.