pageextension 50108 SalesOrderSubformExt extends "Sales Order Subform"
{
actions
{
addlast("O&rder")
{
action(ValidateNo)
{
ApplicationArea = All;
Caption = 'Validate No.';
trigger OnAction()
var
SalesOrderLine: Record "Sales Line";
Item: Record Item;
begin
SalesOrderLine.SetRange("Document Type", Rec."Document Type");
SalesOrderLine.SetRange("Document No.", Rec."No.");
if SalesOrderLine.FindSet() then
repeat
if Item.Get(SalesOrderLine."No.") then begin
SalesOrderLine.Validate(Description, Item.Description);
SalesOrderLine.Modify(true);
end;
until SalesOrderLine.Next() = 0;
Message('All lines have been validated.');
end;
}
}
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156