Codeunit 6085 Serv. Ledg Bar Chart DrillDown

App
Base Application
Namespace
Microsoft.Service.Analysis
Versions
17-28

Versions171819202122232425262728

Source29

Source in 29

src/Layers/W1/BaseApp/Service/Analysis/ServLedgBarChartDrillDown.Codeunit.al39 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.Service.Analysis;

using Microsoft.Service.Ledger;
using System.Visualization;

codeunit 6085 "Serv. Ledg Bar Chart DrillDown"
{
    TableNo = "Bar Chart Buffer";

    trigger OnRun()
    begin
        if Rec.Tag = '' then
            Error(Text000);
        ServLedgEntry.SetView(Rec.Tag);
        ServLedgEntry.SetRange(Open, false);
        case Rec."Series No." of
            1:
                ServLedgEntry.SetRange("Entry Type", ServLedgEntry."Entry Type"::Sale);
            2:
                begin
                    ServLedgEntry.SetRange("Entry Type", ServLedgEntry."Entry Type"::Usage);
                    ServLedgEntry.SetRange("Moved from Prepaid Acc.", true);
                end;
        end;
        PAGE.RunModal(0, ServLedgEntry);
    end;

    var
        ServLedgEntry: Record "Service Ledger Entry";
#pragma warning disable AA0074
        Text000: Label 'The corresponding service ledger entries cannot be displayed because the filter expression is too long.';
#pragma warning restore AA0074
}