Page 6774 Invt. Document Lines

Base Application, Microsoft.Inventory.Document

src/Layers/W1/BaseApp/Inventory/Document/InvtDocumentLines.Page.al205 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.Inventory.Document;using Microsoft.Finance.Dimension;page 6774 "Invt. Document Lines"{    Caption = 'Invt. Document Lines';    Editable = false;    PageType = List;    SourceTable = "Invt. Document Line";    layout    {        area(content)        {            repeater(Control1)            {                ShowCaption = false;                field("Document Type"; Rec."Document Type")                {                    ApplicationArea = Basic, Suite;                }                field("Document No."; Rec."Document No.")                {                    ApplicationArea = Basic, Suite;                }                field("Line No."; Rec."Line No.")                {                    Visible = false;                }                field("Variant Code"; Rec."Variant Code")                {                    Visible = false;                }                field(Description; Rec.Description)                {                    ApplicationArea = Basic, Suite;                }                field("Location Code"; Rec."Location Code")                {                    ApplicationArea = Basic, Suite;                    Visible = true;                }                field(Quantity; Rec.Quantity)                {                    ApplicationArea = Basic, Suite;                }                field("Reserved Quantity Inbnd."; Rec."Reserved Quantity Inbnd.")                {                    ApplicationArea = Basic, Suite;                }                field("Reserved Quantity Outbnd."; Rec."Reserved Quantity Outbnd.")                {                    ApplicationArea = Basic, Suite;                }                field("Document Date"; Rec."Document Date")                {                    ApplicationArea = Basic, Suite;                }                field("Unit of Measure Code"; Rec."Unit of Measure Code")                {                    ApplicationArea = Basic, Suite;                }                field("Shortcut Dimension 1 Code"; Rec."Shortcut Dimension 1 Code")                {                    Visible = false;                }                field("Shortcut Dimension 2 Code"; Rec."Shortcut Dimension 2 Code")                {                    Visible = false;                }                field("ShortcutDimCode[3]"; ShortcutDimCode[3])                {                    CaptionClass = '1,2,3';                    TableRelation = "Dimension Value".Code where("Global Dimension No." = const(3),                                                                  "Dimension Value Type" = const(Standard),                                                                  Blocked = const(false));                    ToolTip = 'Specifies the code for Shortcut Dimension 3';                    Visible = false;                }                field("ShortcutDimCode[4]"; ShortcutDimCode[4])                {                    CaptionClass = '1,2,4';                    TableRelation = "Dimension Value".Code where("Global Dimension No." = const(4),                                                                  "Dimension Value Type" = const(Standard),                                                                  Blocked = const(false));                    ToolTip = 'Specifies the code for Shortcut Dimension 4';                    Visible = false;                }                field("ShortcutDimCode[5]"; ShortcutDimCode[5])                {                    CaptionClass = '1,2,5';                    TableRelation = "Dimension Value".Code where("Global Dimension No." = const(5),                                                                  "Dimension Value Type" = const(Standard),                                                                  Blocked = const(false));                    ToolTip = 'Specifies the code for Shortcut Dimension 5';                    Visible = false;                }                field("ShortcutDimCode[6]"; ShortcutDimCode[6])                {                    CaptionClass = '1,2,6';                    TableRelation = "Dimension Value".Code where("Global Dimension No." = const(6),                                                                  "Dimension Value Type" = const(Standard),                                                                  Blocked = const(false));                    ToolTip = 'Specifies the code for Shortcut Dimension 6';                    Visible = false;                }                field("ShortcutDimCode[7]"; ShortcutDimCode[7])                {                    CaptionClass = '1,2,7';                    TableRelation = "Dimension Value".Code where("Global Dimension No." = const(7),                                                                  "Dimension Value Type" = const(Standard),                                                                  Blocked = const(false));                    ToolTip = 'Specifies the code for Shortcut Dimension 7';                    Visible = false;                }                field("ShortcutDimCode[8]"; ShortcutDimCode[8])                {                    CaptionClass = '1,2,8';                    TableRelation = "Dimension Value".Code where("Global Dimension No." = const(8),                                                                  "Dimension Value Type" = const(Standard),                                                                  Blocked = const(false));                    ToolTip = 'Specifies the code for Shortcut Dimension 8';                    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 = 'View the related item document.';                    trigger OnAction()                    begin                        InvtDocHeader.Get(Rec."Document Type", Rec."Document No.");                        case Rec."Document Type" of                            Rec."Document Type"::Receipt:                                PAGE.Run(PAGE::"Invt. Receipt", InvtDocHeader);                            Rec."Document Type"::Shipment:                                PAGE.Run(PAGE::"Invt. Shipment", InvtDocHeader);                        end;                    end;                }                action("Reservation Entries")                {                    ApplicationArea = Basic, Suite;                    Caption = 'Reservation Entries';                    Image = ReservationLedger;                    ToolTip = 'View the entries for every reservation that is made, either manually or automatically.';                    trigger OnAction()                    begin                        Rec.ShowReservation();                    end;                }                action("Item &Tracking Lines")                {                    ApplicationArea = Basic, Suite;                    Caption = 'Item &Tracking Lines';                    ShortCutKey = 'Ctrl+Alt+I';                    Image = ItemTrackingLines;                    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.OpenItemTrackingLines();                    end;                }            }        }    }    trigger OnAfterGetRecord()    begin        Rec.ShowShortcutDimCode(ShortcutDimCode);    end;    trigger OnNewRecord(BelowxRec: Boolean)    begin        Clear(ShortcutDimCode);    end;    var        InvtDocHeader: Record "Invt. Document Header";        ShortcutDimCode: array[8] of Code[20];}