Page extension 99000815 Mfg. ItemAvailByLocationLines, source in 29

Source29

src/Layers/W1/BaseApp/Manufacturing/Inventory/Availability/MfgItemAvailByLocationLines.PageExt.al54 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;

using Microsoft.Manufacturing.Document;

pageextension 99000815 "Mfg. ItemAvailByLocationLines" extends "Item Avail. by Location Lines"
{
    layout
    {
        addafter(QtyAvailable)
        {
#pragma warning disable AA0100
            field("Item.""Scheduled Receipt (Qty.)"""; Item."Scheduled Receipt (Qty.)")
#pragma warning restore AA0100
            {
                ApplicationArea = Basic, Suite;
                Caption = 'Scheduled Receipt (Qty.)';
                DecimalPlaces = 0 : 5;
                ToolTip = 'Specifies how many units of the item are scheduled for production orders. The program automatically calculates and updates the contents of the field, using the Remaining Quantity field on production order lines.';
                Visible = false;

                trigger OnDrillDown()
                var
                    ProdOrderAvailabilityMgt: Codeunit "Prod. Order Availability Mgt.";
                begin
                    SetItemFilter();
                    ProdOrderAvailabilityMgt.ShowSchedReceipt(Item);
                end;
            }
#pragma warning disable AA0100
            field("Item.""Scheduled Need (Qty.)"""; Item."Qty. on Component Lines")
#pragma warning restore AA0100
            {
                ApplicationArea = Basic, Suite;
                Caption = 'Qty. on Component Lines';
                ToolTip = 'Specifies the sum of items from planned production orders.';
                Visible = false;

                trigger OnDrillDown()
                var
                    ProdOrderAvailabilityMgt: Codeunit "Prod. Order Availability Mgt.";
                begin
                    SetItemFilter();
                    ProdOrderAvailabilityMgt.ShowSchedNeed(Item);
                end;
            }
        }
    }
}