ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Codeunit 2000001 CheckPaymJnlLine "CheckBeneficiaryBankForSEPA"

Open bartpattijn opened this issue 6 years ago • 2 comments

can following change be made to codeunit 2000001 CheckPaymJnlLine function "CheckBeneficiaryBankForSEPA"

WITH PmtJnlLine DO BEGIN CheckIBANForSEPA(PmtJnlLine,EuroSEPA); IF IfForeignBank(PmtJnlLine."Bank Account") THEN //new code ErrorEmptyFieldInLine("Line No.","SWIFT Code",FIELDCAPTION("SWIFT Code"));

IF NOT ErrorEmptyFieldInLine("Line No.","Bank Country/Region Code",FIELDCAPTION("Bank Country/Region Code")) THEN CheckSEPAAllowed(EuroSEPA,"Line No.","Bank Country/Region Code"); END;

new function: IfForeignBank(codBank; code[20]) GetBankAccount(codBank); CompanyInformation.GET; IF BankAcc."Country/Region Code" <> CompanyInformation."Country/Region Code" THEN EXIT(TRUE);

this because the SWIFT code is no longer mandatory for belgian bank transfer and therefor is not always present.

or event in place of this code is also a possibility, so we can skip the error.

bartpattijn avatar Dec 02 '19 13:12 bartpattijn

Thanks for submitting this issue. We will publish a fix for it in the next minor update for release 15.

bc-ghost avatar Dec 30 '19 07:12 bc-ghost

Thanks for submitting this issue. We will publish a fix for it in the next minor update for release 15.

bc-ghost avatar Feb 14 '20 12:02 bc-ghost