NEW3.04.02 · Released 2 December 2021
NEWfinPOWER Connect
Released in
3.04.02
2 December 2021
  1. Opened5 Jul
  2. Closed13 Sep
  3. Released2 Dec
Article 18560 Job J026896

Process Direct Debit Payments; expose more information for scripting

Process Direct Debit Payments has been enhanced to expose more information - mainly for scripting purposes.

The Summary Page now includes a list of the Transactions that make up the Direct Debit.

  • finAccountDirectDebit now includes a collection of Account Transactions that make up the Direct Debit.
    • This allows a script to examine the source of the Direct Debit and act accordingly.
  • There are new properties on finAccountDirectDebit:
    • Notes.
      • Overrides the Notes written to the Bank and related Account Transactions.
    • UserNotes.
      • Sets the UserNotes written to the Bank and related Account Transactions.
      • Note, combining Direct Debits relies on the User Flag and User Notes being the same.

Sample code, excerpt from "AccountDirectDebits" Object Event script:

Select Case eventId
  Case "ExecuteCommitPre"
    ' Runs at the start of ExecuteCommit
    ' Return False to cancel

    Dim AccountDirectDebit As finAccountDirectDebit
    Dim AccountTransaction As finAccountTransaction

    For Each AccountDirectDebit In AccountDirectDebits
      For Each AccountTransaction In AccountDirectDebit.AccountTransactions
        AccountDirectDebit.UserNotes = AccountTransaction.ScheduleTypeText
      Next
    Next

The following standard Summary Page block has been updated:

  • AccountDirectDebit_Summary
    • Version: 1.03 (13/09/2021)