Page 607 IC G/L Account List

Base Application, Microsoft.Intercompany.GLAccount

src/Layers/W1/BaseApp/Finance/Intercompany/GLAccount/ICGLAccountList.Page.al95 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.Intercompany.GLAccount;/// <summary>/// List interface for browsing and selecting intercompany G/L accounts./// Provides read-only view of IC accounts with navigation to detailed card page./// </summary>page 607 "IC G/L Account List"{    Caption = 'Intercompany G/L Account List';    CardPageID = "IC G/L Account Card";    Editable = false;    PageType = List;    SourceTable = "IC G/L Account";    layout    {        area(content)        {            repeater(Control1)            {                IndentationColumn = NameIndent;                IndentationControls = Name;                ShowCaption = false;                field("No."; Rec."No.")                {                    ApplicationArea = Intercompany;                    Style = Strong;                    StyleExpr = Emphasize;                    ToolTip = 'Specifies the number of the involved entry or record, according to the specified number series.';                }                field(Name; Rec.Name)                {                    ApplicationArea = Intercompany;                    Style = Strong;                    StyleExpr = Emphasize;                    ToolTip = 'Specifies the name of the IC general ledger account.';                }                field("Income/Balance"; Rec."Income/Balance")                {                    ApplicationArea = Intercompany;                    ToolTip = 'Specifies whether a general ledger account is an income statement account or a balance sheet account.';                }                field("Account Type"; Rec."Account Type")                {                    ApplicationArea = Intercompany;                    ToolTip = 'Specifies the purpose of the account. Total: Used to total a series of balances on accounts from many different account groupings. To use Total, leave this field blank. Begin-Total: A marker for the beginning of a series of accounts to be totaled that ends with an End-Total account. End-Total: A total of a series of accounts that starts with the preceding Begin-Total account. The total is defined in the Totaling field.';                }            }        }        area(factboxes)        {            systempart(Control1900383207; Links)            {                ApplicationArea = RecordLinks;                Visible = false;            }            systempart(Control1905767507; Notes)            {                ApplicationArea = Notes;                Visible = false;            }        }    }    actions    {    }    trigger OnAfterGetRecord()    begin        NameIndent := 0;        FormatLine();    end;    trigger OnInit()    begin        CurrPage.LookupMode := true;    end;    var        Emphasize: Boolean;        NameIndent: Integer;    local procedure FormatLine()    begin        NameIndent := Rec.Indentation;        Emphasize := Rec."Account Type" <> Rec."Account Type"::Posting;    end;}