[Event Request] codeunit 1233 "SEPA DD-Check Line" in function CheckCollectionEntry
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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