Article Details
Id: | 18560 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.04.02 |
Opened: | 05/07/2021 |
Closed: | 13/09/2021 |
Released: | 02/12/2021 |
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)