mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
14 lines
469 B
AL
14 lines
469 B
AL
codeunit 50223 "Perf Sample CalcSums Bad"
|
|
{
|
|
procedure TotalSales(CustomerNo: Code[20]) Total: Decimal
|
|
var
|
|
CustLedgerEntry: Record "Cust. Ledger Entry";
|
|
begin
|
|
CustLedgerEntry.SetCurrentKey("Customer No.");
|
|
CustLedgerEntry.SetRange("Customer No.", CustomerNo);
|
|
if CustLedgerEntry.FindSet() then
|
|
repeat
|
|
Total += CustLedgerEntry."Sales (LCY)";
|
|
until CustLedgerEntry.Next() = 0;
|
|
end;
|
|
}
|