Codeunit 306 No. Series - Stateless Impl.

Business Foundation, Microsoft.Foundation.NoSeries

Source AL, 128 lines

src/Business Foundation/App/NoSeries/src/Single/NoSeriesStatelessImpl.Codeunit.allines 8 to 23 of 128, Copyright (c) Microsoft Corporation. MIT

codeunit 306 "No. Series - Stateless Impl." implements "No. Series - Single"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    Permissions =        tabledata "No. Series" = r,        tabledata "No. Series Line" = rimd;    var        CannotAssignNumbersGreaterThanErr: Label 'You cannot assign numbers greater than %1 from the number series %2. No. assigned: %3', Comment = '%1=Last No.,%2=No. Series Code, %3=the new no.';        WarnNoSeriesRunningOutMsg: Label 'The No. Series %1 is soon running out. The current number is %2 and the last allowed number of the sequence is %3.', Comment = '%1=No. Series code,%2=Current No.,%3=Last No. of the sequence';        NoSeriesTxt: Label 'No. Series', Locked = true;        NoSeriesOutOfRangeTxt: Label 'The last number used is outside range.', Locked = true;        NoSeriesWarningTxt: Label 'The No. Series is running out of numbers.', Locked = true;

All 128 lines

Public procedures 5 in 29

PeekNextNo(NoSeriesLine: Record "No. Series Line"; UsageDate: Date): Code[20]new in 24
GetNextNo(var NoSeriesLine: Record "No. Series Line"; UsageDate: Date; HideErrorsAndWarnings: Boolean): Code[20]new in 24
GetLastNoUsed(NoSeriesLine: Record "No. Series Line"): Code[20]new in 24
MayProduceGaps(): Booleannew in 24
EnsureLastNoUsedIsWithinValidRange(NoSeriesLine: Record "No. Series Line"; NoErrorsOrWarnings: Boolean): Booleannew in 24