Article Details
Id:9703
Product:finPOWER Connect
Type:NEW
Version:1.04.05
Opened:21/02/2012
Closed:23/02/2012
Released:02/03/2012
Job: J009027

Wizard Validator Scripts added for Account Transaction Reverse and Bank Transaction Reverse wizards

The Account Transaction Reverse and Bank Transaction Reverse wizards now support Wizard Validator Scripts.

The Scripts are defined under Global Settings, Accounts, Scripts.

Account Payment Reverse

Sample Validator code.

  ' Handle Events
  Select Case eventId
    Case "PageValidate"
      Select Case pageId
        Case "Original"
          If -AccountPaymentReverse.BankTransactionView.Value > 4.99 Then
            outcome = isefinDecisionOutcomeStatus.Fail 
            outcomeMessage = "You can only reverse payments up to $4.99."
          End If
      End Select
  End Select

Account Transaction Reverse

Sample Validator code.

  ' Handle Events
  Select Case eventId
    Case "PageValidate"
      Select Case pageId
        Case "General"
          If AccountTransactionReverse.AccountTransaction.Value > 1.5  Then
            outcome = isefinDecisionOutcomeStatus.Fail
            outcomeMessage = "You can only reverse payments up to $1.50."
          End If
      End Select
  End Select