Page 1163 Sales Invoices Due Next Week

Base Application, Microsoft.Sales.History

src/Layers/W1/BaseApp/Sales/History/SalesInvoicesDueNextWeek.Page.al96 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.History;/// <summary>/// Displays posted sales invoices with due dates in the upcoming week for payment tracking./// </summary>page 1163 "Sales Invoices Due Next Week"{    Caption = 'Sales Invoices Due Next Week';    DeleteAllowed = false;    Editable = false;    InsertAllowed = false;    ModifyAllowed = false;    PageType = CardPart;    ShowFilter = false;    SourceTable = "Sales Invoice Header";    SourceTableView = sorting("Posting Date")                      order(descending);    layout    {        area(content)        {            repeater(Group)            {                field("Due Date"; Rec."Due Date")                {                    ApplicationArea = All;                    ToolTip = 'Specifies when the sales invoices must be paid.';                }                field("No."; Rec."No.")                {                    ApplicationArea = All;                    ToolTip = 'Specifies the number of the involved entry or record, according to the specified number series.';                }                field("Sell-to Customer Name"; Rec."Sell-to Customer Name")                {                    ApplicationArea = All;                    ToolTip = 'Specifies the name of the customer.';                }                field("Remaining Amount"; Rec."Remaining Amount")                {                    ApplicationArea = All;                    trigger OnDrillDown()                    var                        HyperLinkUrl: Text[250];                    begin                        HyperLinkUrl := GetUrl(CLIENTTYPE::Web, CompanyName, OBJECTTYPE::Page, 573) +                          StrSubstNo(FilterForRemAmountDrillDwnTxt, Rec."Cust. Ledger Entry No.");                        HyperLink(HyperLinkUrl);                    end;                }                field("Currency Code"; Rec."Currency Code")                {                    ApplicationArea = All;                    ToolTip = 'Specifies the relevant currency code for the sales invoices.';                }                field(Closed; Rec.Closed)                {                    ApplicationArea = All;                    ToolTip = 'Specifies whether or not the sales invoice on the line has been closed.';                    trigger OnDrillDown()                    var                        HyperLinkUrl: Text[250];                    begin                        HyperLinkUrl := GetUrl(CLIENTTYPE::Web, CompanyName, OBJECTTYPE::Page, 25) +                          StrSubstNo(FilterForClosedDrillDwnTxt, Rec."Cust. Ledger Entry No.");                        HyperLink(HyperLinkUrl);                    end;                }            }        }    }    actions    {    }    trigger OnOpenPage()    begin        Rec.SetRange(Closed, false);        Rec.SetFilter("Due Date", '%1..%2', CalcDate('<1D>', WorkDate()), CalcDate('<1W>', WorkDate()));        Rec.Ascending := false;    end;    var        FilterForClosedDrillDwnTxt: Label '&filter=''Cust. Ledger Entry''.''Entry No.'' IS ''%1'' AND ''Cust. Ledger Entry''.Open IS ''1''', Comment = '%1 - Customer ledger Entry No. for sales invoice header.';        FilterForRemAmountDrillDwnTxt: Label '&filter=''Detailed Cust. Ledg. Entry''.''Cust. Ledger Entry No.'' IS ''%1''', Comment = '%1 - Customer ledger Entry No. for sales invoice header.';}