Page 440 Issued Reminder List
src/Layers/W1/BaseApp/Sales/Reminder/IssuedReminderList.Page.al346 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.Sales.Reminder;using Microsoft.Sales.Customer;using Microsoft.Sales.Reports;/// <summary>/// Displays a list of all issued reminders with options to view, print, cancel, or send them./// </summary>page 440 "Issued Reminder List"{ ApplicationArea = Suite; Caption = 'Issued Reminders'; CardPageID = "Issued Reminder"; DataCaptionFields = "Customer No."; InsertAllowed = false; ModifyAllowed = false; PageType = List; AboutTitle = 'About Issued Reminders'; AboutText = 'View and manage reminders issued to customers for overdue payments, including the ability to review details and cancel reminders individually or in batches before they are sent.'; SourceTable = "Issued Reminder Header"; SourceTableView = sorting("Posting Date") order(descending); UsageCategory = Lists; layout { area(content) { repeater(Control1) { ShowCaption = false; field("No."; Rec."No.") { ApplicationArea = Basic, Suite; } field("Posting Date"; Rec."Posting Date") { ApplicationArea = Basic, Suite; ToolTip = 'Specifies the posting date that the reminder was issued on.'; Visible = false; } field("Customer No."; Rec."Customer No.") { ApplicationArea = Basic, Suite; } field(Name; Rec.Name) { ApplicationArea = Basic, Suite; } field("Currency Code"; Rec."Currency Code") { ApplicationArea = Basic, Suite; } field("Remaining Amount"; Rec."Remaining Amount") { ApplicationArea = Basic, Suite; DrillDown = false; } field("No. Printed"; Rec."No. Printed") { ApplicationArea = Basic, Suite; Visible = false; } field("Post Code"; Rec."Post Code") { ApplicationArea = Basic, Suite; Visible = false; } field(City; Rec.City) { 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(Canceled; Rec.Canceled) { ApplicationArea = Basic, Suite; } } } area(factboxes) { systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = true; } } } actions { area(navigation) { group("&Reminder") { Caption = '&Reminder'; Image = Reminder; action("Co&mments") { ApplicationArea = Basic, Suite; Caption = 'Co&mments'; Image = ViewComments; RunObject = Page "Reminder Comment Sheet"; RunPageLink = Type = const("Issued Reminder"), "No." = field("No."); ToolTip = 'View or add comments for the record.'; } action("C&ustomer") { ApplicationArea = Basic, Suite; Caption = 'C&ustomer'; Image = Customer; RunObject = Page "Customer List"; RunPageLink = "No." = field("Customer No."); ToolTip = 'Open the card of the customer that the reminder or finance charge applies to. '; } separator(Action27) { } action(Statistics) { ApplicationArea = Basic, Suite; Caption = 'Statistics'; Image = Statistics; RunObject = Page "Issued Reminder Statistics"; RunPageLink = "No." = field("No."); ShortCutKey = 'F7'; ToolTip = 'View statistical information, such as the value of posted entries, for the record.'; } } } area(processing) { action("&Print") { ApplicationArea = Basic, Suite; Caption = '&Print'; Ellipsis = true; Image = Print; ToolTip = 'Prepare to print the document. The report request window for the document opens where you can specify what to include on the print-out.'; trigger OnAction() var IssuedReminderHeader: Record "Issued Reminder Header"; IsHandled: Boolean; begin IssuedReminderHeader := Rec; OnBeforePrintRecords(Rec, IssuedReminderHeader, IsHandled); if IsHandled then exit; CurrPage.SetSelectionFilter(IssuedReminderHeader); IssuedReminderHeader.PrintRecords(true, false, false); end; } action("Send by &Email") { ApplicationArea = Basic, Suite; Caption = 'Send by &Email'; Image = Email; ToolTip = 'Prepare to send the document by email. The Send Email window opens prefilled for the customer where you can add or change information before you send the email.'; trigger OnAction() var IssuedReminderHeader: Record "Issued Reminder Header"; IssuedReminderHeader2: Record "Issued Reminder Header"; PrevCustomerNo: Code[20]; IsHandled: Boolean; begin IssuedReminderHeader := Rec; OnBeforeSendRecords(Rec, IssuedReminderHeader, IsHandled); if IsHandled then exit; CurrPage.SetSelectionFilter(IssuedReminderHeader); CurrPage.SetSelectionFilter(IssuedReminderHeader2); PrevCustomerNo := ''; IssuedReminderHeader.SetCurrentKey("Customer No."); if IssuedReminderHeader.FindSet() then repeat if IssuedReminderHeader."Customer No." <> PrevCustomerNo then begin IssuedReminderHeader2.SetRange("Customer No.", IssuedReminderHeader."Customer No."); IssuedReminderHeader2.PrintRecords(false, true, false); end; PrevCustomerNo := IssuedReminderHeader."Customer No."; until IssuedReminderHeader.Next() = 0; end; } action("&Navigate") { ApplicationArea = Basic, Suite; 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(Cancel) { ApplicationArea = Basic, Suite; Caption = 'Cancel'; Ellipsis = true; Image = Cancel; ToolTip = 'Cancel the issued reminder.'; trigger OnAction() var IssuedReminderHeader: Record "Issued Reminder Header"; begin CurrPage.SetSelectionFilter(IssuedReminderHeader); Rec.RunCancelIssuedReminder(IssuedReminderHeader); end; } } area(reporting) {#if not CLEAN27 action("Reminder Nos.") { ApplicationArea = Suite; Caption = 'The action will be obsoleted.'; Image = "Report"; //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' //PromotedCategory = "Report"; RunObject = Report Reminder; ToolTip = 'The action will be obsoleted.'; Visible = false; ObsoleteState = Pending; ObsoleteReason = 'The related report doesn''t exist anymore';#pragma warning disable AS0074 ObsoleteTag = '27.0';#pragma warning restore AS0074 }#endif action("Customer - Balance to Date") { ApplicationArea = Basic, Suite; Caption = 'Customer - Balance to Date'; Image = "Report"; RunObject = Report "Customer - Balance to Date"; } action("Customer - Detail Trial Bal.") { ApplicationArea = Basic, Suite; Caption = 'Customer - Detail Trial Bal.'; Image = "Report"; //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' //PromotedCategory = "Report"; RunObject = Report "Customer - Detail Trial Bal."; } action(MarkAsSent) { ApplicationArea = Basic, Suite; Caption = 'Mark as Sent'; Image = SendConfirmation; ToolTip = 'Mark the reminder as sent.'; trigger OnAction() var SendReminder: Codeunit "Send Reminder"; begin SendReminder.UpdateReminderSentFromUI(Rec); end; } } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref("&Print_Promoted"; "&Print") { } actionref("Send by &Email_Promoted"; "Send by &Email") { } actionref("&Navigate_Promoted"; "&Navigate") { } actionref(Cancel_Promoted; Cancel) { } actionref(MarkAsSent_Promoted; MarkAsSent) { } } group(Category_Reminder) { Caption = 'Reminder'; actionref(Statistics_Promoted; Statistics) { } actionref("Co&mments_Promoted"; "Co&mments") { } actionref("C&ustomer_Promoted"; "C&ustomer") { } } group(Category_Report) { Caption = 'Reports'; actionref("Customer - Balance to Date_Promoted"; "Customer - Balance to Date") { } } } } [IntegrationEvent(false, false)] local procedure OnBeforePrintRecords(IssuedReminderHeaderRec: Record "Issued Reminder Header"; var IssuedReminderHeaderToPrint: Record "Issued Reminder Header"; var IsHandled: Boolean) begin end; [IntegrationEvent(false, false)] local procedure OnBeforeSendRecords(IssuedReminderHeaderRec: Record "Issued Reminder Header"; var IssuedReminderHeaderToPrint: Record "Issued Reminder Header"; var IsHandled: Boolean) begin end;}