microsoft / microsoft/BCApps

[Event Request] codeunit 1233 "SEPA DD-Check Line" in function CheckCollectionEntry

Open
#11,011 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

missing-info Team: Finance
Dominant language
AL
Stars
683
Forks
459
Avg merge
3d 26m
Merged PRs (30d)
633

Description

Why do you need this change?

We need an event to prevent the SWIFT Code field from being left blank in the function CheckCollectionEntry

Describe the request

Add a new event OnBeforeCheckSWFTCode
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckSWFTCode(CustomerBankAccount: Record "Customer Bank Account"; DirectDebitCollectionEntry: Record "Direct Debit Collection Entry"; var IsHandled: Boolean)
begin
end;

Add the code here:

CustomerBankAccount.Get(Customer."No.", SEPADirectDebitMandate."Customer Bank Account Code");
if not GLSetup."SEPA Export w/o Bank Acc. Data" then begin
**
//Added Code
IsHandled := false;
OnBeforeCheckSWFTCode(CustomerBankAccount, DirectDebitCollectionEntry, IsHandled);
if not IsHandled then
**
if CustomerBankAccount."SWIFT Code" = '' then

Provide an implementation (optional)
  • I will provide the implementation for this extensibility request

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in codeunit 1233, "SEPA DD-Check Line", and inspect the CheckCollectionEntry function around the SWIFT Code validation. Add the requested event and confirm that handled checks can bypass the blank SWIFT Code error; the issue does not name a test file or test command.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.