mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 667c64a8-eb36-4440-bc41-6a97d8fb5542 Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
13 lines
364 B
AL
13 lines
364 B
AL
codeunit 50232 "Perf Sample ReadIso Good"
|
|
{
|
|
procedure IsCustomerBlocked(CustomerNo: Code[20]): Boolean
|
|
var
|
|
Customer: Record Customer;
|
|
begin
|
|
Customer.ReadIsolation := IsolationLevel::ReadCommitted;
|
|
if not Customer.Get(CustomerNo) then
|
|
exit(false);
|
|
|
|
exit(Customer.Blocked <> Customer.Blocked::" ");
|
|
end;
|
|
}
|