Page 6622 Blanket Sales Order Archives
src/Layers/W1/BaseApp/Sales/Archive/BlanketSalesOrderArchives.Page.al210 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.Sales.Archive;using Microsoft.Foundation.Reporting;using System.Security.User;/// <summary>/// Lists all archived blanket sales order versions for viewing and reference./// </summary>page 6622 "Blanket Sales Order Archives"{ ApplicationArea = Suite; Caption = 'Blanket Sales Order Archives'; CardPageID = "Blanket Sales Order Archive"; Editable = false; PageType = List; SourceTable = "Sales Header Archive"; SourceTableView = where("Document Type" = const("Blanket Order")); UsageCategory = History; layout { area(content) { repeater(Control26) { 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("Sell-to Customer No."; Rec."Sell-to Customer No.") { ApplicationArea = Suite; } field("Sell-to Customer Name"; Rec."Sell-to Customer Name") { ApplicationArea = Suite; } field("External Document No."; Rec."External Document No.") { ApplicationArea = Suite; } field("Sell-to Contact"; Rec."Sell-to Contact") { ApplicationArea = Suite; } field("Sell-to Post Code"; Rec."Sell-to Post Code") { ApplicationArea = Suite; } field("Sell-to Country/Region Code"; Rec."Sell-to Country/Region Code") { ApplicationArea = Suite; } field("Bill-to Contact No."; Rec."Bill-to Contact No.") { ApplicationArea = RelationshipMgmt; } field("Bill-to Post Code"; Rec."Bill-to Post Code") { ApplicationArea = Suite; } field("Bill-to Country/Region Code"; Rec."Bill-to Country/Region Code") { ApplicationArea = Suite; } field("Ship-to Code"; Rec."Ship-to Code") { ApplicationArea = Suite; } field("Ship-to Name"; Rec."Ship-to Name") { ApplicationArea = Suite; } field("Ship-to Contact"; Rec."Ship-to Contact") { ApplicationArea = Suite; } field("Ship-to Post Code"; Rec."Ship-to Post Code") { ApplicationArea = Suite; } field("Ship-to Country/Region Code"; Rec."Ship-to Country/Region Code") { ApplicationArea = Suite; } field("Posting Date"; Rec."Posting Date") { ApplicationArea = Suite; } field("Shortcut Dimension 1 Code"; Rec."Shortcut Dimension 1 Code") { ApplicationArea = Dimensions; } field("Shortcut Dimension 2 Code"; Rec."Shortcut Dimension 2 Code") { ApplicationArea = Dimensions; } field("Location Code"; Rec."Location Code") { ApplicationArea = Location; } field("Salesperson Code"; Rec."Salesperson Code") { ApplicationArea = Suite; } field("Currency Code"; Rec."Currency Code") { ApplicationArea = Suite; } field("Your Reference"; Rec."Your Reference") { ApplicationArea = Suite; Importance = Additional; Visible = false; } } } area(factboxes) { systempart(Control32; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control31; Notes) { ApplicationArea = Notes; Visible = false; } } } actions { area(processing) { action(Print) { ApplicationArea = Suite; Caption = 'Print'; 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() var DocPrint: Codeunit "Document-Print"; begin DocPrint.PrintSalesHeaderArch(Rec); end; } action(Comments) { ApplicationArea = Comments; Caption = 'Comments'; Image = ViewComments; RunObject = Page "Sales Archive Comment Sheet"; RunPageLink = "Document Type" = const("Blanket Order"); ToolTip = 'View or add comments for the record.'; } } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref(Print_Promoted; Print) { } actionref(Comments_Promoted; Comments) { } } } }}