This following function in Report 10412 in Dynamics 365 Business Central is for setting Check Format for Employees.
In this function I think instead of BankAcc should be BankAcc2.
local procedure ApplyBalancingTypeOfEmployee()
begin
Employee.Get(BalancingNo);
if Employee."Privacy Blocked" then
Error(BlockedEmplForCheckErr, Employee."No.");
FormatAddr.Employee(CheckToAddr, Employee);
if BankAcc2."Currency Code" <> GenJnlLine."Currency Code" then
Error(Text005Err);
if Employee."Salespers./Purch. Code" <> '' then
SalespersonPurchaser.Get(Employee."Salespers./Purch. Code");
CheckTranslationManagement.SetCheckPrintParams(
BankAcc."Check Date Format",
BankAcc."Check Date Separator",
BankAcc."Country/Region Code",
BankAcc."Bank Communication",
CheckToAddr[1],
CheckDateFormat,
DateSeparator,
CheckLanguage,
CheckStyle);
end;
0