1
Lines copied from Codeunit 12:
Cust.CheckBlockedCustOnJnls(Cust, GenJnlLine, true);
Vend.CheckBlockedVendOnJnls(Vend, "Document Type", true);
Employee.CheckBlockedEmployeeOnJnls(true);
BankAcc.TestField(Blocked, false);
GLAcc.TestField(Blocked, false);
Cust.CheckBlockedCustOnJnls(Cust, "Document Type", true);
Vend.CheckBlockedVendOnJnls(Vend, "Document Type", true);
Cust.CheckBlockedCustOnJnls(Cust, GenJnlLine2."Document Type"::Payment, true);
Employee.CheckBlockedEmployeeOnJnls(true);
It will be helpful, if you make all these 10 check as the first one where we have access to GenJnlLine in the OnBeforeCheckBlocked Event.
Best regards
Flemming
STATUS DETAILS
Needs Votes