Page 7390 Posted Invt. Put-away

Base Application, Microsoft.Warehouse.InventoryDocument

src/Layers/W1/BaseApp/Warehouse/InventoryDocument/PostedInvtPutaway.Page.al156 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.Warehouse.InventoryDocument;using Microsoft.Warehouse.Comment;using Microsoft.Warehouse.Journal;page 7390 "Posted Invt. Put-away"{    Caption = 'Posted Invt. Put-away';    InsertAllowed = false;    ModifyAllowed = false;    PageType = Document;    RefreshOnActivate = true;    SaveValues = true;    SourceTable = "Posted Invt. Put-away Header";    layout    {        area(content)        {            group(General)            {                Caption = 'General';                field("No."; Rec."No.")                {                    ApplicationArea = Warehouse;                }                field("Location Code"; Rec."Location Code")                {                    ApplicationArea = Location;                }                field("Source No."; Rec."Source No.")                {                    ApplicationArea = Warehouse;                }                field("Destination No."; Rec."Destination No.")                {                    ApplicationArea = Warehouse;                    CaptionClass = Format(WMSMgt.GetCaptionClass(Rec."Destination Type", Rec."Source Document", 0));                    Editable = false;                }#pragma warning disable AA0100                field("WMSMgt.GetDestinationName(""Destination Type"",""Destination No."")"; WMSMgt.GetDestinationEntityName(Rec."Destination Type", Rec."Destination No."))#pragma warning restore AA0100                {                    ApplicationArea = Warehouse;                    CaptionClass = Format(WMSMgt.GetCaptionClass(Rec."Destination Type", Rec."Source Document", 1));                    Caption = 'Name';                    Editable = false;                    ToolTip = 'Specifies the name of a put-away of items that has been posted in one of the warehouses.';                }                field("Posting Date"; Rec."Posting Date")                {                    ApplicationArea = Warehouse;                }                field("Expected Receipt Date"; Rec."Expected Receipt Date")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("External Document No."; Rec."External Document No.")                {                    ApplicationArea = Warehouse;                    CaptionClass = Format(WMSMgt.GetCaptionClass(Rec."Destination Type", Rec."Source Document", 2));                }                field("External Document No.2"; Rec."External Document No.2")                {                    ApplicationArea = Warehouse;                    CaptionClass = Format(WMSMgt.GetCaptionClass(Rec."Destination Type", Rec."Source Document", 3));                }            }            part(WhseActivityLines; "Posted Invt. Put-away Subform")            {                ApplicationArea = Warehouse;                SubPageLink = "No." = field("No.");                SubPageView = sorting("No.", "Sorting Sequence No.");            }        }        area(factboxes)        {            systempart(Control1900383207; Links)            {                ApplicationArea = RecordLinks;                Visible = false;            }            systempart(Control1905767507; Notes)            {                ApplicationArea = Notes;                Visible = true;            }        }    }    actions    {        area(navigation)        {            group("Put-&away")            {                Caption = 'Put-&away';                Image = CreatePutAway;                action("Co&mments")                {                    ApplicationArea = Comments;                    Caption = 'Co&mments';                    Image = ViewComments;                    RunObject = Page "Warehouse Comment Sheet";                    RunPageLink = "Table Name" = const("Posted Invt. Put-Away"),                                  Type = const(" "),                                  "No." = field("No.");                    ToolTip = 'View or add comments for the record.';                }            }        }        area(processing)        {            action("&Navigate")            {                ApplicationArea = Warehouse;                Caption = 'Find entries...';                Image = Navigate;                ShortCutKey = 'Ctrl+Alt+Q';                ToolTip = 'Find entries and documents that exist for the document number and posting date on the selected document. (Formerly this action was named Navigate.)';                trigger OnAction()                begin                    Rec.Navigate();                end;            }        }        area(Promoted)        {            group(Category_Process)            {                Caption = 'Process';                actionref("&Navigate_Promoted"; "&Navigate")                {                }            }        }    }    trigger OnDeleteRecord(): Boolean    begin        CurrPage.Update();    end;    var        WMSMgt: Codeunit "WMS Management";}