Page 932 Assembly Quotes

Base Application, Microsoft.Assembly.Document

src/Layers/W1/BaseApp/Assembly/Document/AssemblyQuotes.Page.al357 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.Assembly.Document;using Microsoft.Assembly.Comment;using Microsoft.Finance.Dimension;using Microsoft.Inventory.Availability;using Microsoft.Inventory.BOM;using Microsoft.Inventory.Location;page 932 "Assembly Quotes"{    ApplicationArea = Assembly;    Caption = 'Assembly Quotes';    CardPageID = "Assembly Quote";    DataCaptionFields = "No.";    Editable = false;    PageType = List;    SourceTable = "Assembly Header";    SourceTableView = where("Document Type" = filter(Quote));    UsageCategory = Lists;    layout    {        area(content)        {            repeater(Control1)            {                ShowCaption = false;                field("No."; Rec."No.")                {                    ApplicationArea = Assembly;                }                field(Description; Rec.Description)                {                    ApplicationArea = Assembly;                }                field("Description 2"; Rec."Description 2")                {                    ApplicationArea = Assembly;                    Visible = false;                }                field("Due Date"; Rec."Due Date")                {                    ApplicationArea = Assembly;                }                field("Starting Date"; Rec."Starting Date")                {                    ApplicationArea = Assembly;                }                field("Ending Date"; Rec."Ending Date")                {                    ApplicationArea = Assembly;                }                field("Assemble to Order"; Rec."Assemble to Order")                {                    ApplicationArea = Assembly;                }                field("Item No."; Rec."Item No.")                {                    ApplicationArea = Basic, Suite;                }                field(Quantity; Rec.Quantity)                {                    ApplicationArea = Assembly;                }                field("Unit Cost"; Rec."Unit Cost")                {                    ApplicationArea = Assembly;                }                field("Location Code"; Rec."Location Code")                {                    ApplicationArea = Location;                }                field("Variant Code"; Rec."Variant Code")                {                    ApplicationArea = Planning;                }                field("Bin Code"; Rec."Bin Code")                {                    ApplicationArea = Warehouse;                }            }        }        area(factboxes)        {            systempart(RecordLinks; Links)            {                ApplicationArea = RecordLinks;                Caption = 'RecordLinks';                Visible = false;            }            systempart(Control1905767507; Notes)            {                ApplicationArea = Notes;                Visible = false;            }        }    }    actions    {        area(navigation)        {            group(Line)            {                Caption = 'Line';                Image = Line;            }            group("Item Availability by")            {                Caption = 'Item Availability by';                Image = ItemAvailability;                action("Event")                {                    ApplicationArea = Assembly;                    Caption = 'Event';                    Image = "Event";                    ToolTip = 'View how the actual and the projected available balance of an item will develop over time according to supply and demand events.';                    trigger OnAction()                    begin                        AssemblyAvailabilityMgt.ShowItemAvailabilityFromAsmHeader(Rec, "Item Availability Type"::"Event");                    end;                }                action(Period)                {                    ApplicationArea = Assembly;                    Caption = 'Period';                    Image = Period;                    ToolTip = 'View the projected quantity of the item over time according to time periods, such as day, week, or month.';                    trigger OnAction()                    begin                        AssemblyAvailabilityMgt.ShowItemAvailabilityFromAsmHeader(Rec, "Item Availability Type"::Period);                    end;                }                action(Variant)                {                    ApplicationArea = Planning;                    Caption = 'Variant';                    Image = ItemVariant;                    ToolTip = 'View or edit the item''s variants. Instead of setting up each color of an item as a separate item, you can set up the various colors as variants of the item.';                    trigger OnAction()                    begin                        AssemblyAvailabilityMgt.ShowItemAvailabilityFromAsmHeader(Rec, "Item Availability Type"::Variant);                    end;                }                action(Location)                {                    AccessByPermission = TableData Location = R;                    ApplicationArea = Location;                    Caption = 'Location';                    Image = Warehouse;                    ToolTip = 'View the actual and projected quantity of the item per location.';                    trigger OnAction()                    begin                        AssemblyAvailabilityMgt.ShowItemAvailabilityFromAsmHeader(Rec, "Item Availability Type"::Location);                    end;                }                action(Lot)                {                    ApplicationArea = ItemTracking;                    Caption = 'Lot';                    Image = LotInfo;                    RunObject = Page "Item Availability by Lot No.";                    RunPageLink = "No." = field("No."),                            "Location Filter" = field("Location Code"),                            "Variant Filter" = field("Variant Code");                    ToolTip = 'View the current and projected quantity of the item in each lot.';                }                action("BOM Level")                {                    ApplicationArea = Assembly;                    Caption = 'BOM Level';                    Image = BOMLevel;                    ToolTip = 'View availability figures for items on bills of materials that show how many units of a parent item you can make based on the availability of child items.';                    trigger OnAction()                    begin                        AssemblyAvailabilityMgt.ShowItemAvailabilityFromAsmHeader(Rec, "Item Availability Type"::BOM);                    end;                }            }            group("&Quote")            {                Caption = '&Quote';                Image = Quote;                action(Statistics)                {                    ApplicationArea = Assembly;                    Caption = 'Statistics';                    Image = Statistics;                    RunObject = Page "Assembly Order Statistics";                    RunPageOnRec = true;                    ShortCutKey = 'F7';                    ToolTip = 'View statistical information, such as the value of posted entries, for the record.';                }                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("Assembly BOM")                {                    ApplicationArea = Assembly;                    Caption = 'Assembly BOM';                    Image = AssemblyBOM;                    RunObject = Page "Assembly BOM";                    RunPageLink = "Parent Item No." = field("Item No.");                    ToolTip = 'View or edit the bill of material that specifies which items and resources are required to assemble the assembly item.';                }                action(Comments)                {                    ApplicationArea = Comments;                    Caption = 'Co&mments';                    Image = ViewComments;                    RunObject = Page "Assembly Comment Sheet";                    RunPageLink = "Document Type" = field("Document Type"),                                  "Document No." = field("No."),                                  "Document Line No." = const(0);                    ToolTip = 'View or add comments for the record.';                }            }        }        area(processing)        {            group(ReleaseGroup)            {                Caption = 'Release';                Image = ReleaseDoc;                action(Release)                {                    ApplicationArea = Assembly;                    Caption = 'Re&lease';                    Image = ReleaseDoc;                    ShortCutKey = 'Ctrl+F9';                    ToolTip = 'Release the document to the next stage of processing. You must reopen the document before you can make changes to it.';                    trigger OnAction()                    var                        AssemblyHeader: Record "Assembly Header";                    begin                        AssemblyHeader := Rec;                        AssemblyHeader.Find();                        CODEUNIT.Run(CODEUNIT::"Release Assembly Document", AssemblyHeader);                    end;                }                action(Reopen)                {                    ApplicationArea = Assembly;                    Caption = 'Re&open';                    Image = ReOpen;                    ToolTip = 'Reopen the document for additional warehouse activity.';                    trigger OnAction()                    var                        AssemblyHeader: Record "Assembly Header";                        ReleaseAssemblyDoc: Codeunit "Release Assembly Document";                    begin                        AssemblyHeader := Rec;                        AssemblyHeader.Find();                        ReleaseAssemblyDoc.Reopen(AssemblyHeader);                    end;                }            }        }        area(Promoted)        {            group(Category_Process)            {                Caption = 'Process', Comment = 'Generated from the PromotedActionCategories property index 1.';            }            group(Category_Category6)            {                Caption = 'Release', Comment = 'Generated from the PromotedActionCategories property index 5.';                ShowAs = SplitButton;                actionref(Release_Promoted; Release)                {                }                actionref(Reopen_Promoted; Reopen)                {                }            }            group(Category_Category4)            {                Caption = 'Quote', Comment = 'Generated from the PromotedActionCategories property index 3.';                actionref(Dimensions_Promoted; Dimensions)                {                }                actionref(Statistics_Promoted; Statistics)                {                }                actionref(Comments_Promoted; Comments)                {                }                actionref("Assembly BOM_Promoted"; "Assembly BOM")                {                }            }            group(Category_Category5)            {                Caption = 'View', Comment = 'Generated from the PromotedActionCategories property index 4.';            }            group("Category_Item Availability by")            {                Caption = 'Item Availability by';                actionref(Event_Promoted; "Event")                {                }                actionref(Period_Promoted; Period)                {                }                actionref(Variant_Promoted; Variant)                {                }                actionref(Location_Promoted; Location)                {                }                actionref(Lot_Promoted; Lot)                {                }                actionref("BOM Level_Promoted"; "BOM Level")                {                }            }            group(Category_Category7)            {                Caption = 'Navigate', Comment = 'Generated from the PromotedActionCategories property index 6.';            }            group(Category_Report)            {                Caption = 'Report', Comment = 'Generated from the PromotedActionCategories property index 2.';            }        }    }    var        AssemblyAvailabilityMgt: Codeunit "Assembly Availability Mgt.";}