Codeunit 4143 No. Series Check

App
Base Application
Namespace
Microsoft.Foundation.NoSeries
Versions
21-28

Versions171819202122232425262728

Source29

Source in 29

src/Layers/W1/BaseApp/Foundation/NoSeries/NoSeriesCheck.Codeunit.al22 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.Foundation.NoSeries;

/// <summary>
/// This codeunit verifies that a number can be retrieved for the given No. Series.
/// </summary>
codeunit 4143 "No. Series Check"
{
    TableNo = "No. Series";
    Access = Internal;

    trigger OnRun()
    var
        NoSeries: Codeunit "No. Series";
    begin
        NoSeries.PeekNextNo(Rec.Code, WorkDate());
    end;
}