Page 313 Gen. Product Posting Groups, source in 29

Source29

src/Layers/W1/BaseApp/Finance/GeneralLedger/Setup/GenProductPostingGroups.Page.al94 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.GeneralLedger.Setup;

/// <summary>
/// List page for managing General Product Posting Groups used in posting setup combinations.
/// Provides interface for creating and maintaining product posting group codes that represent different item categories or service types.
/// </summary>
/// <remarks>
/// Product posting groups combine with business posting groups in General Posting Setup to determine G/L account assignments.
/// Critical for automated posting of inventory transactions, sales, purchases, and cost of goods sold entries.
/// Supports VAT integration through default VAT product posting group assignment and auto-insertion capabilities.
/// </remarks>
page 313 "Gen. Product Posting Groups"
{
    ApplicationArea = Basic, Suite;
    Caption = 'General Product Posting Groups';
    PageType = List;
    AboutTitle = 'About General Product Posting Groups';
    AboutText = 'Categorize items and resources by product type for sales and purchasing transactions, enabling accurate posting and reporting based on general product posting groups and default VAT settings.';
    SourceTable = "Gen. Product Posting Group";
    UsageCategory = Administration;

    layout
    {
        area(content)
        {
            repeater(Control1)
            {
                ShowCaption = false;
                field("Code"; Rec.Code)
                {
                    ApplicationArea = Basic, Suite;
                }
                field(Description; Rec.Description)
                {
                    ApplicationArea = Basic, Suite;
                }
                field("Def. VAT Prod. Posting Group"; Rec."Def. VAT Prod. Posting Group")
                {
                    ApplicationArea = Basic, Suite;
                }
                field("Auto Insert Default"; Rec."Auto Insert Default")
                {
                    ApplicationArea = Basic, Suite;
                }
            }
        }
        area(factboxes)
        {
            systempart(Control1900383207; Links)
            {
                ApplicationArea = RecordLinks;
                Visible = false;
            }
            systempart(Control1905767507; Notes)
            {
                ApplicationArea = Notes;
                Visible = false;
            }
        }
    }

    actions
    {
        area(processing)
        {
            action("&Setup")
            {
                ApplicationArea = Basic, Suite;
                Caption = '&Setup';
                Image = Setup;
                RunObject = Page "General Posting Setup";
                RunPageLink = "Gen. Prod. Posting Group" = field(Code);
                ToolTip = 'View or edit how you want to set up combinations of general business and general product posting groups.';
            }
        }
        area(Promoted)
        {
            group(Category_Process)
            {
                Caption = 'Process';

                actionref("&Setup_Promoted"; "&Setup")
                {
                }
            }
        }
    }
}