mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 06:36:55 +01:00
12 lines
404 B
AL
12 lines
404 B
AL
codeunit 50222 "Perf Sample CalcSums Good"
|
|
{
|
|
procedure TotalSales(CustomerNo: Code[20]) Total: Decimal
|
|
var
|
|
CustLedgerEntry: Record "Cust. Ledger Entry";
|
|
begin
|
|
CustLedgerEntry.SetCurrentKey("Customer No.");
|
|
CustLedgerEntry.SetRange("Customer No.", CustomerNo);
|
|
CustLedgerEntry.CalcSums("Sales (LCY)");
|
|
Total := CustLedgerEntry."Sales (LCY)";
|
|
end;
|
|
}
|