Page 7399 Internal Movement
src/Layers/W1/BaseApp/Warehouse/InternalDocument/InternalMovement.Page.al208 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.InternalDocument;using Microsoft.Warehouse.Activity;using Microsoft.Warehouse.Comment;using Microsoft.Warehouse.Structure;page 7399 "Internal Movement"{ Caption = 'Internal Movement'; PageType = Document; PopulateAllFields = true; RefreshOnActivate = true; SourceTable = "Internal Movement Header"; layout { area(content) { group(General) { Caption = 'General'; field("No."; Rec."No.") { ApplicationArea = Warehouse; trigger OnAssistEdit() begin if Rec.AssistEdit() then CurrPage.Update(); end; } field("Location Code"; Rec."Location Code") { ApplicationArea = Location; } field("To Bin Code"; Rec."To Bin Code") { ApplicationArea = Warehouse; } field("Due Date"; Rec."Due Date") { ApplicationArea = Warehouse; } field("Assigned User ID"; Rec."Assigned User ID") { ApplicationArea = Warehouse; } field("Assignment Date"; Rec."Assignment Date") { ApplicationArea = Warehouse; Editable = false; } field("Assignment Time"; Rec."Assignment Time") { ApplicationArea = Warehouse; Editable = false; } field("Sorting Method"; Rec."Sorting Method") { ApplicationArea = Warehouse; trigger OnValidate() begin SortingMethodOnAfterValidate(); end; } } part(InternalMovementLines; "Internal Movement Subform") { ApplicationArea = Warehouse; SubPageLink = "No." = field("No."); SubPageView = sorting("No.", "Sorting Sequence No."); } } area(factboxes) { part(Control5; "Lot Numbers by Bin FactBox") { ApplicationArea = ItemTracking; Provider = InternalMovementLines; SubPageLink = "Item No." = field("Item No."), "Variant Code" = field("Variant Code"), "Location Code" = field("Location Code"); Visible = false; } systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = true; } } } actions { area(navigation) { group("&Internal Movement") { Caption = '&Internal Movement'; Image = CreateMovement; action(List) { ApplicationArea = Warehouse; Caption = 'List'; Image = OpportunitiesList; ToolTip = 'View all warehouse documents of this type that exist.'; trigger OnAction() begin Rec.LookupInternalMovementHeader(Rec); end; } action("Co&mments") { ApplicationArea = Warehouse; Caption = 'Co&mments'; Image = ViewComments; RunObject = Page "Warehouse Comment Sheet"; RunPageLink = "Table Name" = const("Internal Movement"), Type = const(" "), "No." = field("No."); ToolTip = 'View or add comments for the record.'; } } } area(processing) { group("F&unctions") { Caption = 'F&unctions'; Image = "Action"; action("Get Bin Content") { AccessByPermission = TableData "Bin Content" = R; ApplicationArea = Warehouse; Caption = 'Get Bin Content'; Ellipsis = true; Image = GetBinContent; ToolTip = 'Use a function to create transfer lines with items to put away or pick based on the actual content in the specified bin.'; trigger OnAction() var BinContent: Record "Bin Content"; WhseGetBinContent: Report "Whse. Get Bin Content"; begin Rec.TestField("No."); Rec.TestField("Location Code"); BinContent.SetRange("Location Code", Rec."Location Code"); WhseGetBinContent.SetTableView(BinContent); WhseGetBinContent.InitializeInternalMovement(Rec); WhseGetBinContent.Run(); end; } action("Create Inventory Movement") { ApplicationArea = Warehouse; Caption = 'Create Inventory Movement'; Ellipsis = true; Image = CreatePutAway; ToolTip = 'Create an inventory movement to handle items on the document according to a basic warehouse configuration.'; trigger OnAction() var CreateInvtPickMovement: Codeunit "Create Inventory Pick/Movement"; begin CreateInvtPickMovement.CreateInvtMvntWithoutSource(Rec); end; } } } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref("Create Inventory Movement_Promoted"; "Create Inventory Movement") { } actionref("Get Bin Content_Promoted"; "Get Bin Content") { } } } } trigger OnOpenPage() begin Rec.OpenInternalMovementHeader(Rec); end; local procedure SortingMethodOnAfterValidate() begin CurrPage.Update(); end;}