Skip to content

[NL][Codeunit][11400][LocalFunctionalityMgt][CheckBankAccNo] Add integration event OnCheckBankAccNoAfterNormalizeAcc #30174

@KateDovgalova

Description

@KateDovgalova

Why do you need this change?

In 4PS Construct we need to run additional NL-specific normalization for Account number in procedure CheckBankAccNo of codeunit 11400 "Local Functionality Mgt.". It should be executed after initial normalization but before the main validation logic runs therefore we need new integration event.

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS I would like to request integration event 'OnCheckBankAccNoAfterNormalizeAcc' to be added to procedure CheckBankAccNo of codeunit 11400 "Local Functionality Mgt.":

    procedure CheckBankAccNo(Acc: Text[30]; CountryCode: Code[10]; var AccountNo: Text[30]) Result: Boolean
    var
        Len: Integer;
        BaseLen: Integer;
        FirstCharacter: Char;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeCheckBankAccNo(Acc, CountryCode, AccountNo, Result, IsHandled);
        if IsHandled then
            exit(Result);

        AccountNo := Acc;
        if CountryCode <> '' then
            exit(true);
        Acc := CharacterFilter(UpperCase(Acc), Text1000031);
        Acc := DelChr(Acc, '>', Text1000034);
        OnCheckBankAccNoAfterNormalizeAcc(Acc); //new
        BaseLen := StrLen(Acc);
    [IntegrationEvent(false, false)]
    local procedure OnCheckBankAccNoAfterNormalizeAcc(var Acc: Text[30])
    begin
        //new
    end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    IntegrationGitHub request for Integration areaevent-requestRequest for adding an event

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions