Page 45 Sales List
src/Layers/W1/BaseApp/Sales/Document/SalesList.Page.al247 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.Document;using Microsoft.EServices.EDocument;#if not CLEAN28using Microsoft.Sales.Reports;#endifusing Microsoft.Utilities;/// <summary>/// Displays a lookup list of sales documents filtered by document type./// </summary>page 45 "Sales List"{ Caption = 'Sales List'; DataCaptionFields = "Document Type"; Editable = false; PageType = List; SourceTable = "Sales Header"; layout { area(content) { repeater(Control1) { ShowCaption = false; field("No."; Rec."No.") { ApplicationArea = Basic, Suite; ToolTip = 'Specifies the number of the involved entry or record, according to the specified number series.'; } field("Sell-to Customer No."; Rec."Sell-to Customer No.") { ApplicationArea = Basic, Suite; ToolTip = 'Specifies the number of the customer.'; } field("Sell-to Customer Name"; Rec."Sell-to Customer Name") { ApplicationArea = Basic, Suite; ToolTip = 'Specifies the name of the customer.'; } field("External Document No."; Rec."External Document No.") { ApplicationArea = Basic, Suite; } field("Sell-to Post Code"; Rec."Sell-to Post Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Sell-to Country/Region Code"; Rec."Sell-to Country/Region Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Sell-to Contact"; Rec."Sell-to Contact") { ApplicationArea = Basic, Suite; Visible = false; } field("Bill-to Customer No."; Rec."Bill-to Customer No.") { ApplicationArea = Basic, Suite; Visible = false; } field("Bill-to Name"; Rec."Bill-to Name") { ApplicationArea = Basic, Suite; Visible = false; } field("Bill-to Post Code"; Rec."Bill-to Post Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Bill-to Country/Region Code"; Rec."Bill-to Country/Region Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Bill-to Contact"; Rec."Bill-to Contact") { ApplicationArea = Basic, Suite; Visible = false; } field("Ship-to Code"; Rec."Ship-to Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Ship-to Name"; Rec."Ship-to Name") { ApplicationArea = Basic, Suite; Visible = false; } field("Ship-to Post Code"; Rec."Ship-to Post Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Ship-to Country/Region Code"; Rec."Ship-to Country/Region Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Ship-to Contact"; Rec."Ship-to Contact") { ApplicationArea = Basic, Suite; Visible = false; } field("Posting Date"; Rec."Posting Date") { ApplicationArea = Basic, Suite; 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; } field("Salesperson Code"; Rec."Salesperson Code") { ApplicationArea = Suite; ToolTip = 'Specifies the name of the sales person who is assigned to the customer.'; Visible = false; } field("Assigned User ID"; Rec."Assigned User ID") { ApplicationArea = Basic, Suite; } field("Currency Code"; Rec."Currency Code") { ApplicationArea = Suite; Visible = false; } field("Document Date"; Rec."Document Date") { ApplicationArea = Basic, Suite; } field(Status; Rec.Status) { ApplicationArea = Basic, Suite; } } } area(factboxes) { part(IncomingDocAttachFactBox; "Incoming Doc. Attach. FactBox") { ApplicationArea = Basic, Suite; ShowFilter = false; Visible = false; } systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = false; } } } actions { area(navigation) { group("&Line") { Caption = '&Line'; Image = Line; action(ShowDocument) { ApplicationArea = Basic, Suite; Caption = 'Show Document'; Image = EditLines; ShortCutKey = 'Return'; ToolTip = 'View or change detailed information about the customer.'; trigger OnAction() var PageManagement: Codeunit "Page Management"; begin PageManagement.PageRun(Rec); end; } } } area(reporting) {#if not CLEAN28 action("Sales Reservation Avail.") { ApplicationArea = Reservation; Caption = 'Sales Reservation Avail.'; Image = "Report"; //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' //PromotedCategory = "Report"; RunObject = Report "Sales Reservation Avail."; ToolTip = 'View, print, or save an overview of availability of items for shipment on sales documents, filtered on shipment status.'; ObsoleteState = Pending; ObsoleteReason = 'This report is obsolete and will be removed in a future version.'; ObsoleteTag = '28.0'; }#endif } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref(Card_Promoted; ShowDocument) { } } } } trigger OnAfterGetCurrRecord() begin CurrPage.IncomingDocAttachFactBox.PAGE.LoadDataFromRecord(Rec); end; trigger OnOpenPage() begin Rec.CopySellToCustomerFilter(); end;}