mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Move canonical knowledge for Microsoft-owned review domains into the Microsoft layer and document the skill/knowledge co-location policy. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2a6ea875-d38e-4f30-aadb-0d606f9be231
20 lines
706 B
AL
20 lines
706 B
AL
codeunit 50100 "ChangeCompany Loop Bad"
|
|
{
|
|
procedure NamesForCustomers(var Buffer: Record Customer)
|
|
var
|
|
Customer: Record Customer;
|
|
Company: Record Company;
|
|
begin
|
|
Customer.SetLoadFields(Name);
|
|
if Buffer.FindSet() then
|
|
repeat
|
|
if Company.FindSet() then
|
|
repeat
|
|
// ChangeCompany per customer per company resets caches every row.
|
|
Customer.ChangeCompany(Company.Name);
|
|
if Customer.Get(Buffer."No.") then
|
|
Message(Customer.Name);
|
|
until Company.Next() = 0;
|
|
until Buffer.Next() = 0;
|
|
end;
|
|
}
|