Codeunit 5835 Item Reg.-Show Cap. Ledger

App
Base Application
Namespace
Microsoft.Manufacturing.Capacity
Versions
17-28

Versions171819202122232425262728

Source29

Source in 29

src/Layers/W1/BaseApp/Inventory/Capacity/ItemRegShowCapLedger.Codeunit.al24 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.Manufacturing.Capacity;

using Microsoft.Inventory.Ledger;

codeunit 5835 "Item Reg.-Show Cap. Ledger"
{
    TableNo = "Item Register";

    trigger OnRun()
    begin
        CapLedgEntry.SetRange("Entry No.", Rec."From Capacity Entry No.", Rec."To Capacity Entry No.");
        CapLedgEntry.SetFilter("Item Register No.", '0|%1', Rec."No.");
        PAGE.Run(PAGE::"Capacity Ledger Entries", CapLedgEntry);
    end;

    var
        CapLedgEntry: Record "Capacity Ledger Entry";
}