Report "Post Direct Debit Collection"
Posts direct debit collection entries by creating general journal lines and processing payments. Handles the posting of successfully exported direct debit collections, updating mandate counters, and generating payment journal entries for bank reconciliation.
Properties
| Name | Value |
|---|---|
| Caption | Post Direct Debit Collection |
| ProcessingOnly | True |
Methods
SetCollectionEntry
Sets the direct debit collection to process for posting.
procedure SetCollectionEntry(NewCollectionEntry: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| NewCollectionEntry | Integer |
Collection number to process |
SetJnlBatch
Sets the journal template and batch names for posting operations.
procedure SetJnlBatch(NewGenJnlTemplateName: Code[10], NewGenJnlBachName: Code[10])
Parameters
| Name | Type | Description |
|---|---|---|
| NewGenJnlTemplateName | Code[10] |
General journal template name to use |
| NewGenJnlBachName | Code[10] |
General journal batch name to use |
SetCreateJnlOnly
Controls whether the operation only creates journal lines without posting.
procedure SetCreateJnlOnly(NewCreateJnlOnly: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| NewCreateJnlOnly | Boolean |
True to only create journal lines, false to also post them |
Events
OnAfterCreateJnlLine
Integration event raised after creating a general journal line from direct debit collection entry. Enables custom processing or field updates after journal line creation.
[IntegrationEvent(False,False)]
local procedure OnAfterCreateJnlLine(var GenJournalLine: Record "Gen. Journal Line", DirectDebitCollectionEntry: Record "Direct Debit Collection Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
General journal line that was created |
| DirectDebitCollectionEntry | Table Microsoft.Bank.DirectDebit."Direct Debit Collection Entry" |
Source direct debit collection entry |
Remarks
Raised from CreateJnlLine procedure after creating and populating journal line.
OnAfterSetGenJnlLineDim
Integration event raised after setting dimensions on general journal line during direct debit processing. Enables custom dimension handling or validation after standard dimension assignment.
[IntegrationEvent(False,False)]
local procedure OnAfterSetGenJnlLineDim(var GenJournalLine: Record "Gen. Journal Line", CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
General journal line with assigned dimensions |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
Customer ledger entry providing dimension context |
Remarks
Raised from CreateJnlLine procedure after copying dimensions from customer ledger entry.
OnBeforeCreateJnlLine
Integration event raised before creating general journal line from direct debit collection entry. Enables custom journal line creation or validation before standard processing.
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateJnlLine(var GenJournalLine: Record "Gen. Journal Line", DirectDebitCollectionEntry: Record "Direct Debit Collection Entry", var IsHandled: Boolean, var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
General journal line to be created |
| DirectDebitCollectionEntry | Table Microsoft.Bank.DirectDebit."Direct Debit Collection Entry" |
Source direct debit collection entry |
| IsHandled | Boolean |
Set to true to skip standard journal line creation |
| Result | Boolean |
Set to true if custom processing was successful |
Remarks
Raised from CreateJnlLine procedure before creating and populating journal line.