Page 7333 Posted Whse. Receipt List
src/Layers/W1/BaseApp/Warehouse/History/PostedWhseReceiptList.Page.al187 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;page 7333 "Posted Whse. Receipt List"{ ApplicationArea = Warehouse; Caption = 'Posted Warehouse Receipts'; CardPageID = "Posted Whse. Receipt"; DataCaptionFields = "No."; Editable = false; PageType = List; AboutTitle = 'About Posted Warehouse Receipts'; AboutText = 'Review posted warehouse receipts to track received items, verify receipt details by location and user, and monitor the status of warehouse put-away activities.'; SourceTable = "Posted Whse. Receipt Header"; SourceTableView = sorting("Posting Date") order(descending); UsageCategory = History; layout { area(content) { repeater(Control1) { ShowCaption = false; field("No."; Rec."No.") { ApplicationArea = Warehouse; } field("Location Code"; Rec."Location Code") { ApplicationArea = Location; } field("Assigned User ID"; Rec."Assigned User ID") { ApplicationArea = Warehouse; } field("No. Series"; Rec."No. Series") { ApplicationArea = Warehouse; } field("Whse. Receipt No."; Rec."Whse. Receipt No.") { ApplicationArea = Warehouse; } field("Zone Code"; Rec."Zone Code") { ApplicationArea = Warehouse; Visible = false; } field("Bin Code"; Rec."Bin Code") { ApplicationArea = Warehouse; Visible = false; } field("Document Status"; Rec."Document Status") { ApplicationArea = Warehouse; Visible = false; } field("Posting Date"; Rec."Posting Date") { ApplicationArea = Warehouse; Visible = false; } field("Assignment Date"; Rec."Assignment Date") { ApplicationArea = Warehouse; Visible = false; } } } 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.'; } } group("&Line") { Caption = '&Line'; Image = Line; action(Card) { ApplicationArea = Warehouse; Caption = 'Card'; Image = EditLines; ShortCutKey = 'Shift+F7'; ToolTip = 'View or change detailed information about the record on the document or journal line.'; trigger OnAction() begin PAGE.Run(PAGE::"Posted Whse. Receipt", Rec); end; } } } area(Promoted) { } } 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;}