mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Second contribution from CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Cross-checked against the current microsoft/knowledge corpus before opening; several originally-drafted candidates were dropped as duplicates of existing files.
31 lines
652 B
AL
31 lines
652 B
AL
codeunit 50100 "Sales Line Management"
|
|
{
|
|
procedure RecalculateLine(var SalesLine: Record "Sales Line")
|
|
begin
|
|
SalesLine."Total Amount" := SalesLine.Quantity * SalesLine."Unit Price";
|
|
SalesLine.Modify();
|
|
end;
|
|
}
|
|
|
|
page 50100 "Sales Line Card"
|
|
{
|
|
PageType = Card;
|
|
SourceTable = "Sales Line";
|
|
|
|
actions
|
|
{
|
|
area(Processing)
|
|
{
|
|
action(Recalculate)
|
|
{
|
|
trigger OnAction()
|
|
begin
|
|
SalesLineMgt.RecalculateLine(Rec);
|
|
end;
|
|
}
|
|
}
|
|
}
|
|
|
|
var
|
|
SalesLineMgt: Codeunit "Sales Line Management";
|
|
}
|