Page 5974 Posted Service Shipments
src/Layers/W1/BaseApp/Service/History/PostedServiceShipments.Page.al474 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.Service.History;using Microsoft.Finance.Dimension;using Microsoft.Projects.Project.Ledger;using Microsoft.Service.Comment;using Microsoft.Service.Document;using Microsoft.Service.Email;using Microsoft.Service.Ledger;using Microsoft.Utilities;page 5974 "Posted Service Shipments"{ ApplicationArea = Service; Caption = 'Posted Service Shipments'; CardPageID = "Posted Service Shipment"; Editable = false; PageType = List; AboutTitle = 'About Posted Service Shipments'; AboutText = 'View and manage posted service shipments, including shipment details, customer information, and service order data, with options to undo consumption on shipment lines when necessary.'; SourceTable = "Service Shipment Header"; SourceTableView = sorting("Posting Date") order(descending); UsageCategory = History; layout { area(content) { repeater(Control1) { ShowCaption = false; field("No."; Rec."No.") { ApplicationArea = Service; } field("Customer No."; Rec."Customer No.") { ApplicationArea = Service; } field(Name; Rec.Name) { ApplicationArea = Service; } field("External Document No."; Rec."External Document No.") { ApplicationArea = Service; ToolTip = 'Specifies a document number that refers to the customer''s numbering system.'; } field("Post Code"; Rec."Post Code") { ApplicationArea = Service; Visible = false; } field("Country/Region Code"; Rec."Country/Region Code") { ApplicationArea = Service; Visible = false; } field("Contact Name"; Rec."Contact Name") { ApplicationArea = Service; Visible = false; } field("Bill-to Customer No."; Rec."Bill-to Customer No.") { ApplicationArea = Service; Visible = false; } field("Bill-to Name"; Rec."Bill-to Name") { ApplicationArea = Service; Visible = false; } field("Bill-to Post Code"; Rec."Bill-to Post Code") { ApplicationArea = Service; Visible = false; } field("Bill-to Country/Region Code"; Rec."Bill-to Country/Region Code") { ApplicationArea = Service; Visible = false; } field("Bill-to Contact"; Rec."Bill-to Contact") { ApplicationArea = Service; Visible = false; } field("Ship-to Code"; Rec."Ship-to Code") { ApplicationArea = Service; Visible = false; } field("Ship-to Name"; Rec."Ship-to Name") { ApplicationArea = Service; Visible = false; } field("Ship-to Post Code"; Rec."Ship-to Post Code") { ApplicationArea = Service; Visible = false; } field("Ship-to Country/Region Code"; Rec."Ship-to Country/Region Code") { ApplicationArea = Service; Visible = false; } field("Ship-to Contact"; Rec."Ship-to Contact") { ApplicationArea = Service; Visible = false; } field("Posting Date"; Rec."Posting Date") { ApplicationArea = Service; Visible = false; } field("Salesperson Code"; Rec."Salesperson Code") { ApplicationArea = Service; 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("Currency Code"; Rec."Currency Code") { ApplicationArea = Service; } field("Location Code"; Rec."Location Code") { ApplicationArea = Location; Visible = true; } field("Notify Customer"; Rec."Notify Customer") { ApplicationArea = Service; Visible = false; } field("Service Order Type"; Rec."Service Order Type") { ApplicationArea = Service; Visible = false; } field("Contract No."; Rec."Contract No.") { ApplicationArea = Service; Visible = false; } field("Response Date"; Rec."Response Date") { ApplicationArea = Service; Visible = false; } field(Priority; Rec.Priority) { ApplicationArea = Service; Visible = false; } field("Document Date"; Rec."Document Date") { ApplicationArea = Service; Visible = false; } field("Warning Status"; Rec."Warning Status") { ApplicationArea = Service; Visible = false; } field("Allocated Hours"; Rec."Allocated Hours") { ApplicationArea = Service; Visible = false; } field("Order Date"; Rec."Order Date") { ApplicationArea = Service; Visible = false; } field("Expected Finishing Date"; Rec."Expected Finishing Date") { ApplicationArea = Service; Visible = false; } field("Starting Date"; Rec."Starting Date") { ApplicationArea = Service; Visible = false; } field("Finishing Date"; Rec."Finishing Date") { ApplicationArea = Service; Visible = false; } field("Service Time (Hours)"; Rec."Service Time (Hours)") { ApplicationArea = Service; ToolTip = 'Specifies the total time in hours that the service on the service order has taken.'; Visible = false; } } } area(factboxes) { systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = true; } } } actions { area(navigation) { group("&Shipment") { Caption = '&Shipment'; Image = Shipment;#if not CLEAN27 action(Statistics) { ApplicationArea = Service; Caption = 'Statistics'; Image = Statistics; ShortCutKey = 'F7'; ToolTip = 'View statistical information, such as the value of posted entries, for the record.'; ObsoleteReason = 'The statistics action will be replaced with the ServiceStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.'; ObsoleteState = Pending; ObsoleteTag = '27.0'; trigger OnAction() begin Rec.OpenStatistics(); end; }#endif action(ServiceStatistics) { ApplicationArea = Service; Caption = 'Statistics'; Image = Statistics; ShortCutKey = 'F7'; ToolTip = 'View statistical information, such as the value of posted entries, for the record.';#if CLEAN27 Visible = true;#else Visible = false;#endif RunObject = Page "Service Shipment Statistics"; RunPageOnRec = true; } action("Co&mments") { ApplicationArea = Comments; Caption = 'Co&mments'; Image = ViewComments; RunObject = Page "Service Comment Sheet"; RunPageLink = "No." = field("No."), "Table Name" = const("Service Shipment Header"), Type = const(General); ToolTip = 'View or add comments for the record.'; } action("Service Ledger E&ntries") { ApplicationArea = Service; Caption = 'Service Ledger E&ntries'; Image = ServiceLedger; RunObject = Page "Service Ledger Entries"; RunPageLink = "Document Type" = const(Shipment), "Document No." = field("No."); ShortCutKey = 'Ctrl+F7'; ToolTip = 'View all the ledger entries for the service item or service order that result from posting transactions in service documents.'; } action("&Warranty Ledger Entries") { ApplicationArea = Service; Caption = '&Warranty Ledger Entries'; Image = WarrantyLedger; RunObject = Page "Warranty Ledger Entries"; RunPageLink = "Document No." = field("No."); RunPageView = sorting("Document No.", "Posting Date"); ToolTip = 'View all the ledger entries for the service item or service order that result from posting transactions in service documents that contain warranty agreements.'; } action("&Job Ledger Entries") { ApplicationArea = Jobs; Caption = '&Project Ledger Entries'; Image = JobLedger; RunObject = Page "Job Ledger Entries"; RunPageLink = "Document No." = field("No."); ToolTip = 'View all the project ledger entries that result from posting transactions in the service document that involve a project.'; } action("&Allocations") { ApplicationArea = Service; Caption = '&Allocations'; Image = Allocations; RunObject = Page "Service Order Allocations"; RunPageLink = "Document Type" = const(Order), "Document No." = field("Order No."); RunPageView = sorting(Status, "Document Type", "Document No.", "Service Item Line No.", "Allocation Date", "Starting Time", Posted); ToolTip = 'View allocation of resources, such as technicians, to service items in service orders.'; } 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(); CurrPage.SaveRecord(); end; } action("Service Email &Queue") { ApplicationArea = Service; Caption = 'Service Email &Queue'; Image = Email; RunObject = Page "Service Email Queue"; RunPageLink = "Document Type" = const("Service Order"), "Document No." = field("Order No."); RunPageView = sorting("Document Type", "Document No."); ToolTip = 'View the emails that are waiting to be sent to notify customers that their service item is ready.'; } action(CertificateOfSupplyDetails) { ApplicationArea = Service; Caption = 'Certificate of Supply Details'; Image = Certificate; RunObject = Page "Certificates of Supply"; RunPageLink = "Document Type" = filter("Service Shipment"), "Document No." = field("No."); ToolTip = 'View the certificate of supply that you must send to your customer for signature as confirmation of receipt. You must print a certificate of supply if the shipment uses a combination of VAT business posting group and VAT product posting group that have been marked to require a certificate of supply in the VAT Posting Setup window.'; } action(PrintCertificateofSupply) { ApplicationArea = Service; Caption = 'Print Certificate of Supply'; Image = PrintReport; ToolTip = 'Print the certificate of supply that you must send to your customer for signature as confirmation of receipt.'; trigger OnAction() var CertificateOfSupply: Record "Certificate of Supply"; begin CertificateOfSupply.SetRange("Document Type", CertificateOfSupply."Document Type"::"Service Shipment"); CertificateOfSupply.SetRange("Document No.", Rec."No."); CertificateOfSupply.Print(); end; } } } area(processing) { action("&Print") { ApplicationArea = Service; Caption = '&Print'; Ellipsis = true; Image = Print; ToolTip = 'Prepare to print the document. A report request window for the document opens where you can specify what to include on the print-out.'; trigger OnAction() begin ServShptHeader := Rec; CurrPage.SetSelectionFilter(ServShptHeader); ServShptHeader.PrintRecords(true); end; } action("&Navigate") { ApplicationArea = Service; Caption = 'Find entries...'; Image = Navigate; ShortCutKey = 'Ctrl+Alt+Q'; ToolTip = 'Find entries and documents that exist for the document number and posting date on the selected document. (Formerly this action was named Navigate.)'; trigger OnAction() begin Rec.Navigate(); end; } action("Update Document") { ApplicationArea = Service; Caption = 'Update Document'; Image = Edit; ToolTip = 'Add new information that is relevant to the document. You can only edit a few fields because the document has already been posted.'; trigger OnAction() var PostedServiceShptUpdate: Page "Posted Service Ship. - Update"; begin PostedServiceShptUpdate.LookupMode := true; PostedServiceShptUpdate.SetRec(Rec); PostedServiceShptUpdate.RunModal(); end; } } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref("&Print_Promoted"; "&Print") { } actionref("Update Document_Promoted"; "Update Document") { } actionref("&Navigate_Promoted"; "&Navigate") { } group(Category_Shipment) { Caption = 'Shipment'; actionref(Dimensions_Promoted; Dimensions) { }#if not CLEAN27 actionref(Statistics_Promoted; Statistics) { ObsoleteReason = 'The statistics action will be replaced with the ServiceStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.'; ObsoleteState = Pending; ObsoleteTag = '27.0'; }#else actionref(ServiceStatistics_Promoted; ServiceStatistics) { }#endif actionref("Co&mments_Promoted"; "Co&mments") { } } } } } trigger OnOpenPage() begin Rec.SetSecurityFilterOnRespCenter(); end; var ServShptHeader: Record "Service Shipment Header";}