Page 736 VAT Return Period FactBox, source in 29

Source29

src/Layers/W1/BaseApp/Finance/VAT/Reporting/VATReturnPeriodFactBox.Page.al51 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.Finance.VAT.Reporting;

/// <summary>
/// Displays additional information and warnings for VAT return periods.
/// Shows warning messages for open or overdue obligations in a fact box format.
/// </summary>
page 736 "VAT Return Period FactBox"
{
    Caption = 'Additional Information';
    Editable = false;
    LinksAllowed = false;
    PageType = ListPart;
    SourceTable = "VAT Return Period";

    layout
    {
        area(content)
        {
            group(Control2)
            {
                ShowCaption = false;
                field(WarningText; WarningText)
                {
                    ApplicationArea = Basic, Suite;
                    ShowCaption = false;
                    Style = Unfavorable;
                    StyleExpr = true;
                    ToolTip = 'Specifies the warning text that is displayed for an open or overdue obligation.';
                }
            }
        }
    }

    actions
    {
    }

    trigger OnAfterGetCurrRecord()
    begin
        WarningText := Rec.CheckOpenOrOverdue();
    end;

    var
        WarningText: Text;
}