Page 530 Posted Purchase Cr. Memo Lines

Base Application, Microsoft.Purchases.History

src/Layers/W1/BaseApp/Purchases/History/PostedPurchaseCrMemoLines.Page.al274 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.History;using Microsoft.Finance.Dimension;page 530 "Posted Purchase Cr. Memo Lines"{    ApplicationArea = Basic, Suite;    Caption = 'Posted Purchase Cr. Memo Lines';    Editable = false;    PageType = List;    SourceTable = "Purch. Cr. Memo Line";    UsageCategory = History;    layout    {        area(content)        {            repeater(Control1)            {                ShowCaption = false;                field("Document No."; Rec."Document No.")                {                    ApplicationArea = Basic, Suite;                }                field("Buy-from Vendor No."; Rec."Buy-from Vendor No.")                {                    ApplicationArea = Basic, Suite;                    ToolTip = 'Specifies the no. of the vendor who delivered the items.';                }                field("Buy-from Vendor Name"; Rec."Buy-from Vendor Name")                {                    ApplicationArea = Basic, Suite;                }                field(Type; Rec.Type)                {                    ApplicationArea = Basic, Suite;                }                field("No."; Rec."No.")                {                    ApplicationArea = Basic, Suite;                }                field("Variant Code"; Rec."Variant Code")                {                    ApplicationArea = Planning;                    Visible = false;                }                field(Description; Rec.Description)                {                    ApplicationArea = Basic, Suite;                }                field("Description 2"; Rec."Description 2")                {                    ApplicationArea = Suite;                    Importance = Additional;                    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("FA Posting Type"; Rec."FA Posting Type")                {                    ApplicationArea = FixedAssets;                    Visible = false;                }                field("Depreciation Book Code"; Rec."Depreciation Book Code")                {                    ApplicationArea = FixedAssets;                    Visible = false;                }                field(Quantity; Rec.Quantity)                {                    ApplicationArea = Basic, Suite;                }                field("Unit of Measure Code"; Rec."Unit of Measure Code")                {                    ApplicationArea = Basic, Suite;                }                field("Unit of Measure"; Rec."Unit of Measure")                {                    ApplicationArea = Suite;                    Visible = false;                }                field("Direct Unit Cost"; Rec."Direct Unit Cost")                {                    ApplicationArea = Basic, Suite;                }                field("Indirect Cost %"; Rec."Indirect Cost %")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field("Unit Cost (LCY)"; Rec."Unit Cost (LCY)")                {                    ApplicationArea = Basic, Suite;                    ToolTip = 'Specifies the cost, in LCY, of one unit of the item or resource on the line.';                    Visible = false;                }                field("Unit Price (LCY)"; Rec."Unit Price (LCY)")                {                    ApplicationArea = Basic, Suite;                    ToolTip = 'Specifies the price, in LCY, of one unit of the item or resource. You can enter a price manually or have it entered according to the Price/Profit Calculation field on the related card.';                    Visible = false;                }                field(Amount; Rec.Amount)                {                    ApplicationArea = Basic, Suite;                }                field("Amount Including VAT"; Rec."Amount Including VAT")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field("Line Discount %"; Rec."Line Discount %")                {                    ApplicationArea = Basic, Suite;                }                field("Line Discount Amount"; Rec."Line Discount Amount")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field("Allow Invoice Disc."; Rec."Allow Invoice Disc.")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field("Inv. Discount Amount"; Rec."Inv. Discount Amount")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field("Appl.-to Item Entry"; Rec."Appl.-to Item Entry")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field("Order No."; Rec."Order No.")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field("Job No."; Rec."Job No.")                {                    ApplicationArea = Jobs;                    Visible = false;                }                field("Insurance No."; Rec."Insurance No.")                {                    ApplicationArea = FixedAssets;                    Visible = false;                }                field("Depr. until FA Posting Date"; Rec."Depr. until FA Posting Date")                {                    ApplicationArea = FixedAssets;                    Visible = false;                }                field("Depr. Acquisition Cost"; Rec."Depr. Acquisition Cost")                {                    ApplicationArea = FixedAssets;                    Visible = false;                }                field("Budgeted FA No."; Rec."Budgeted FA No.")                {                    ApplicationArea = FixedAssets;                    Visible = false;                }            }        }        area(factboxes)        {            systempart(Control1900383207; Links)            {                ApplicationArea = RecordLinks;                Visible = false;            }            systempart(Control1905767507; Notes)            {                ApplicationArea = Notes;                Visible = false;            }        }    }    actions    {        area(navigation)        {            group("&Line")            {                Caption = '&Line';                Image = Line;                action("Show Document")                {                    ApplicationArea = Basic, Suite;                    Caption = 'Show Document';                    Image = View;                    ShortCutKey = 'Shift+F7';                    ToolTip = 'Open the document that the selected line exists on.';                    trigger OnAction()                    begin                        PurchCrMemoHeader.Get(Rec."Document No.");                        PAGE.Run(PAGE::"Posted Purchase Credit Memo", PurchCrMemoHeader);                    end;                }                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("Item &Tracking Lines")                {                    ApplicationArea = ItemTracking;                    Caption = 'Item &Tracking Lines';                    Image = ItemTrackingLines;                    ShortCutKey = 'Ctrl+Alt+I';                    ToolTip = 'View or edit serial, lot and package numbers that are assigned to the item on the document or journal line.';                    trigger OnAction()                    begin                        Rec.ShowItemTrackingLines();                    end;                }            }        }        area(Promoted)        {            group(Category_Process)            {                Caption = 'Process';                actionref("Show Document_Promoted"; "Show Document")                {                }                actionref("Item &Tracking Lines_Promoted"; "Item &Tracking Lines")                {                }                actionref(Dimensions_Promoted; Dimensions)                {                }            }        }    }    var        PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.";    trigger OnOpenPage()    begin        Rec.SetSecurityFilterOnRespCenter();    end;}