Page 7330 Posted Whse. Receipt

Base Application, Microsoft.Warehouse.History

src/Layers/W1/BaseApp/Warehouse/History/PostedWhseReceipt.Page.al246 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.History;using Microsoft.Warehouse.Activity;using Microsoft.Warehouse.Activity.History;using Microsoft.Warehouse.Comment;using Microsoft.Warehouse.Journal;using Microsoft.Warehouse.Reports;page 7330 "Posted Whse. Receipt"{    Caption = 'Posted Whse. Receipt';    InsertAllowed = false;    PageType = Document;    RefreshOnActivate = true;    SourceTable = "Posted Whse. Receipt Header";    layout    {        area(content)        {            group(General)            {                Caption = 'General';                field("No."; Rec."No.")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Location Code"; Rec."Location Code")                {                    ApplicationArea = Location;                    Editable = false;                }                field("Zone Code"; Rec."Zone Code")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Bin Code"; Rec."Bin Code")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Document Status"; Rec."Document Status")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Posting Date"; Rec."Posting Date")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Vendor Shipment No."; Rec."Vendor Shipment No.")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Whse. Receipt No."; Rec."Whse. Receipt No.")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Assigned User ID"; Rec."Assigned User ID")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Assignment Date"; Rec."Assignment Date")                {                    ApplicationArea = Warehouse;                    Editable = false;                }                field("Assignment Time"; Rec."Assignment Time")                {                    ApplicationArea = Warehouse;                    Editable = false;                }            }            part(PostedWhseRcptLines; "Posted Whse. Receipt Subform")            {                ApplicationArea = Warehouse;                SubPageLink = "No." = field("No.");                SubPageView = sorting("No.", "Line No.");            }        }        area(factboxes)        {            systempart(Control1900383207; Links)            {                ApplicationArea = RecordLinks;                Visible = false;            }            systempart(Control1905767507; Notes)            {                ApplicationArea = Notes;                Visible = true;            }        }    }    actions    {        area(navigation)        {            group("&Receipt")            {                Caption = '&Receipt';                Image = Receipt;                action(List)                {                    ApplicationArea = Warehouse;                    Caption = 'List';                    Image = OpportunitiesList;                    ToolTip = 'View all warehouse documents of this type that exist.';                    trigger OnAction()                    begin                        Rec.LookupPostedWhseRcptHeader(Rec);                    end;                }                action("Co&mments")                {                    ApplicationArea = Warehouse;                    Caption = 'Co&mments';                    Image = ViewComments;                    RunObject = Page "Warehouse Comment Sheet";                    RunPageLink = "Table Name" = const("Posted Whse. Receipt"),                                  Type = const(" "),                                  "No." = field("No.");                    ToolTip = 'View or add comments for the record.';                }                action("Put-away Lines")                {                    ApplicationArea = Warehouse;                    Caption = 'Put-away Lines';                    Image = PutawayLines;                    RunObject = Page "Warehouse Activity Lines";                    RunPageLink = "Whse. Document Type" = const(Receipt),                                  "Whse. Document No." = field("No.");                    RunPageView = sorting("Whse. Document No.", "Whse. Document Type", "Activity Type")                                  where("Activity Type" = const("Put-away"));                    ToolTip = ' View the related put-aways.';                }                action("Registered Put-away Lines")                {                    ApplicationArea = Warehouse;                    Caption = 'Registered Put-away Lines';                    Image = RegisteredDocs;                    RunObject = Page "Registered Whse. Act.-Lines";                    RunPageLink = "Whse. Document Type" = const(Receipt),                                  "Whse. Document No." = field("No.");                    RunPageView = sorting("Whse. Document Type", "Whse. Document No.", "Whse. Document Line No.")                                  where("Activity Type" = const("Put-away"));                    ToolTip = 'View the list of completed put-away activities.';                }            }        }        area(processing)        {            group("F&unctions")            {                Caption = 'F&unctions';                Image = "Action";                action("Create Put-away")                {                    ApplicationArea = Warehouse;                    Caption = 'Create Put-away';                    Ellipsis = true;                    Image = CreatePutAway;                    ToolTip = 'Create warehouse put-away for the received items. ';                    trigger OnAction()                    begin                        CurrPage.Update(true);                        CurrPage.PostedWhseRcptLines.PAGE.PutAwayCreate();                    end;                }            }            action("&Print")            {                ApplicationArea = Warehouse;                Caption = '&Print';                Ellipsis = true;                Image = Print;                ToolTip = 'Prepare to print the document. A report request window for the document opens where you can specify what to include on the print-out.';                trigger OnAction()                begin                    WhseDocPrint.PrintPostedRcptHeader(Rec);                end;            }        }        area(reporting)        {            action("Put-away List")            {                ApplicationArea = Warehouse;                Caption = 'Put-away List';                Image = "Report";                RunObject = Report "Put-away List";            }        }        area(Promoted)        {            group(Category_Process)            {                Caption = 'Process', Comment = 'Generated from the PromotedActionCategories property index 1.';                actionref("Create Put-away_Promoted"; "Create Put-away")                {                }                actionref("&Print_Promoted"; "&Print")                {                }            }            group(Category_Report)            {                Caption = 'Report', Comment = 'Generated from the PromotedActionCategories property index 2.';                actionref("Put-away List_Promoted"; "Put-away List")                {                }            }        }    }    trigger OnOpenPage()    var        WMSManagement: Codeunit "WMS Management";    begin        Rec.ErrorIfUserIsNotWhseEmployee();        Rec.FilterGroup(2); // set group of filters user cannot change        Rec.SetFilter("Location Code", WMSManagement.GetWarehouseEmployeeLocationFilter(UserId));        Rec.FilterGroup(0); // set filter group back to standard    end;    var        WhseDocPrint: Codeunit "Warehouse Document-Print";}