Codeunit 4143 No. Series Check, source in 29
Source29
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;
}