Page 9347 Purchase Order Archives
src/Layers/W1/BaseApp/Purchases/Archive/PurchaseOrderArchives.Page.al301 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.Purchases.Archive;using Microsoft.EServices.EDocument;using Microsoft.Finance.Dimension;using System.Security.User;page 9347 "Purchase Order Archives"{ ApplicationArea = Basic, Suite; Caption = 'Purchase Order Archives'; CardPageID = "Purchase Order Archive"; Editable = false; PageType = List; AboutTitle = 'About Purchase Order Archives'; AboutText = 'Review archived versions of purchase orders, including historical details, vendor information, and attached incoming documents, to track changes and access supporting files for audit or reference purposes.'; SourceTable = "Purchase Header Archive"; SourceTableView = where("Document Type" = const(Order)); UsageCategory = History; layout { area(content) { repeater(Control1) { ShowCaption = false; field("No."; Rec."No.") { ApplicationArea = All; } field("Version No."; Rec."Version No.") { ApplicationArea = Suite; } field("Date Archived"; Rec."Date Archived") { ApplicationArea = Suite; } field("Time Archived"; Rec."Time Archived") { ApplicationArea = Suite; } field("Archived By"; Rec."Archived By") { ApplicationArea = Suite; trigger OnDrillDown() var UserMgt: Codeunit "User Management"; begin UserMgt.DisplayUserInformation(Rec."Archived By"); end; } field("Interaction Exist"; Rec."Interaction Exist") { ApplicationArea = RelationshipMgmt; } field("Buy-from Vendor No."; Rec."Buy-from Vendor No.") { ApplicationArea = Suite; } field("Order Address Code"; Rec."Order Address Code") { ApplicationArea = Suite; Visible = false; } field("Buy-from Vendor Name"; Rec."Buy-from Vendor Name") { ApplicationArea = Suite; } field("Vendor Authorization No."; Rec."Vendor Authorization No.") { ApplicationArea = Suite; } field("Buy-from Post Code"; Rec."Buy-from Post Code") { ApplicationArea = Suite; Visible = false; } field("Buy-from Country/Region Code"; Rec."Buy-from Country/Region Code") { ApplicationArea = Suite; Visible = false; } field("Buy-from Contact"; Rec."Buy-from Contact") { ApplicationArea = Suite; Visible = false; } field("Pay-to Vendor No."; Rec."Pay-to Vendor No.") { ApplicationArea = Suite; Visible = false; } field("Pay-to Name"; Rec."Pay-to Name") { ApplicationArea = Suite; Visible = false; } field("Pay-to Post Code"; Rec."Pay-to Post Code") { ApplicationArea = Suite; Visible = false; } field("Pay-to Country/Region Code"; Rec."Pay-to Country/Region Code") { ApplicationArea = Suite; Visible = false; } field("Pay-to Contact"; Rec."Pay-to Contact") { ApplicationArea = Suite; ToolTip = 'Specifies information about sales quotes, purchase quotes, or orders in earlier versions of the document.'; Visible = false; } field("Ship-to Code"; Rec."Ship-to Code") { ApplicationArea = Suite; Visible = false; } field("Ship-to Name"; Rec."Ship-to Name") { ApplicationArea = Suite; Visible = false; } field("Ship-to Post Code"; Rec."Ship-to Post Code") { ApplicationArea = Suite; Visible = false; } field("Ship-to Country/Region Code"; Rec."Ship-to Country/Region Code") { ApplicationArea = Suite; Visible = false; } field("Ship-to Contact"; Rec."Ship-to Contact") { ApplicationArea = Suite; Visible = false; } field("Posting Date"; Rec."Posting Date") { ApplicationArea = Suite; ToolTip = 'Specifies information about sales quotes, purchase quotes, or orders in earlier versions of the document.'; Visible = false; } field("Shortcut Dimension 1 Code"; Rec."Shortcut Dimension 1 Code") { ApplicationArea = Dimensions; Visible = false; } field("Shortcut Dimension 2 Code"; Rec."Shortcut Dimension 2 Code") { ApplicationArea = Dimensions; Visible = false; } field("Location Code"; Rec."Location Code") { ApplicationArea = Location; ToolTip = 'Specifies information about sales quotes, purchase quotes, or orders in earlier versions of the document.'; Visible = true; } field("Purchaser Code"; Rec."Purchaser Code") { ApplicationArea = Suite; Visible = false; } field("Currency Code"; Rec."Currency Code") { ApplicationArea = Suite; ToolTip = 'Specifies information about sales quotes, purchase quotes, or orders in earlier versions of the document.'; Visible = false; } field(Amount; Rec.Amount) { ApplicationArea = Suite; } field("Amount Including VAT"; Rec."Amount Including VAT") { ApplicationArea = Suite; } field("Document Date"; Rec."Document Date") { ApplicationArea = Suite; Visible = false; } field("Payment Terms Code"; Rec."Payment Terms Code") { ApplicationArea = Suite; Visible = false; } field("Due Date"; Rec."Due Date") { ApplicationArea = Suite; ToolTip = 'Specifies information about sales quotes, purchase quotes, or orders in earlier versions of the document.'; Visible = false; } field("Payment Discount %"; Rec."Payment Discount %") { ApplicationArea = Suite; Visible = false; } field("Payment Method Code"; Rec."Payment Method Code") { ApplicationArea = Suite; Visible = false; } field("Shipment Method Code"; Rec."Shipment Method Code") { ApplicationArea = Suite; Visible = false; } } } area(factboxes) { part(IncomingDocAttachFactBox; "Incoming Doc. Attach. FactBox") { ApplicationArea = Suite; ShowFilter = false; Visible = false; } systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = false; } } } actions { area(navigation) { group("Ver&sion") { Caption = 'Ver&sion'; Image = Versions; action(Dimensions) { AccessByPermission = TableData Dimension = R; ApplicationArea = Dimensions; Caption = 'Dimensions'; Image = Dimensions; ShortCutKey = 'Alt+D'; ToolTip = 'View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history.'; trigger OnAction() begin Rec.ShowDimensions(); end; } action("Co&mments") { ApplicationArea = Comments; Caption = 'Co&mments'; Image = ViewComments; RunObject = Page "Purch. Archive Comment Sheet"; RunPageLink = "Document Type" = field("Document Type"), "No." = field("No."), "Document Line No." = const(0), "Doc. No. Occurrence" = field("Doc. No. Occurrence"), "Version No." = field("Version No."); ToolTip = 'View or add comments for the record.'; } } } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref(Dimensions_Promoted; Dimensions) { } } } } trigger OnOpenPage() begin Rec.SetSecurityFilterOnRespCenter(); end; trigger OnAfterGetCurrRecord() begin CurrPage.IncomingDocAttachFactBox.Page.LoadDataFromRecord(Rec); end;}