report 10412 "Check (Check/Stub/Stub)"

fazlehasanfazlehasan Member Posts: 70
edited 2021-01-20 in NAV Three Tier
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;
Sign In or Register to comment.