Page extension 6485 Serv. ItemAvailbyUOMLines

App
Base Application
Namespace
Microsoft.Inventory.Availability
Versions
25-28
Extends
Item Avail. by UOM Lines

Versions171819202122232425262728

Source29

Source in 29

src/Layers/W1/BaseApp/Service/Inventory/Availability/ServItemAvailbyUOMLines.PageExt.al34 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.Inventory.Availability;

pageextension 6485 "Serv. ItemAvailbyUOMLines" extends "Item Avail. by UOM Lines"
{
    layout
    {
        addafter("Item.""Qty. on Sales Order""")
        {
#pragma warning disable AA0100
            field("Item.""Qty. on Service Order"""; AdjustQty(Item."Qty. on Service Order"))
#pragma warning restore AA0100
            {
                ApplicationArea = Service;
                AutoFormatType = 0;
                Caption = 'Qty. on Service Order';
                DecimalPlaces = 0 : 5;
                ToolTip = 'Specifies how many units of the item are allocated to service orders, meaning listed on outstanding service order lines.';
                Visible = false;

                trigger OnDrillDown()
                var
                    ServAvailabilityMgt: Codeunit Microsoft.Service.Document."Serv. Availability Mgt.";
                begin
                    ServAvailabilityMgt.ShowServiceLines(Item);
                end;
            }
        }
    }
}