Page 53 Purchase List
src/Layers/W1/BaseApp/Purchases/Document/PurchaseList.Page.al241 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.Document;using Microsoft.EServices.EDocument;using Microsoft.Utilities;page 53 "Purchase List"{ Caption = 'Purchase List'; DataCaptionFields = "Document Type"; Editable = false; PageType = List; SourceTable = "Purchase 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("Buy-from Vendor No."; Rec."Buy-from Vendor No.") { ApplicationArea = Basic, Suite; ToolTip = 'Specifies the name of the vendor who delivered the items.'; } field("Order Address Code"; Rec."Order Address Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Buy-from Vendor Name"; Rec."Buy-from Vendor Name") { ApplicationArea = Basic, Suite; ToolTip = 'Specifies the name of the vendor who delivered the items.'; } field("Vendor Authorization No."; Rec."Vendor Authorization No.") { ApplicationArea = Basic, Suite; ToolTip = 'Specifies the identification number of a compensation agreement.'; } field("Buy-from Post Code"; Rec."Buy-from Post Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Buy-from Country/Region Code"; Rec."Buy-from Country/Region Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Buy-from Contact"; Rec."Buy-from Contact") { ApplicationArea = Basic, Suite; Visible = false; } field("Pay-to Vendor No."; Rec."Pay-to Vendor No.") { ApplicationArea = Basic, Suite; Visible = false; } field("Pay-to Name"; Rec."Pay-to Name") { ApplicationArea = Basic, Suite; Visible = false; } field("Pay-to Post Code"; Rec."Pay-to Post Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Pay-to Country/Region Code"; Rec."Pay-to Country/Region Code") { ApplicationArea = Basic, Suite; Visible = false; } field("Pay-to Contact"; Rec."Pay-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("Purchaser Code"; Rec."Purchaser Code") { ApplicationArea = Suite; Visible = false; } field("Assigned User ID"; Rec."Assigned User ID") { ApplicationArea = Basic, Suite; } field("Currency Code"; Rec."Currency Code") { ApplicationArea = Basic, Suite; Visible = false; } field(Amount; Rec.Amount) { ApplicationArea = Basic, Suite; Visible = false; } field("Amount Including VAT"; Rec."Amount Including VAT") { ApplicationArea = Basic, Suite; Visible = false; } } } area(factboxes) { part(IncomingDocAttachFactBox; "Incoming Doc. Attach. FactBox") { ApplicationArea = Basic, Suite; ShowFilter = 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 record on the document or journal line.'; trigger OnAction() var PageManagement: Codeunit "Page Management"; begin PageManagement.PageRun(Rec); end; } } } area(reporting) { action("Purchase Reservation Avail.") { ApplicationArea = Reservation; Caption = 'Purchase Reservation Avail.'; Image = "Report"; //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' //PromotedCategory = "Report"; RunObject = Report "Purchase Reservation Avail."; } } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref(Card_Promoted; ShowDocument) { } } } } trigger OnAfterGetCurrRecord() begin CurrPage.IncomingDocAttachFactBox.PAGE.LoadDataFromRecord(Rec); end; trigger OnOpenPage() begin Rec.CopyBuyFromVendorFilter(); end;}