Table of Contents

Interface "No. Series - Single"

Namespace: Microsoft.Foundation.NoSeries

Specifies the interface for No. Series implementations.

Methods

PeekNextNo

Get the next number in the No. Series, without incrementing the number.

procedure PeekNextNo(NoSeriesLine: Record "No. Series Line", UsageDate: Date): Code[20]

Parameters

Name Type Description
NoSeriesLine Record "No. Series Line"

The No. Series line to use.

UsageDate Date

The date of retrieval, this will influence which line is used.

Returns

Type Description
Code[20]

The next number in the series.

GetNextNo

Get the next number in the No. Series.

procedure GetNextNo(var NoSeriesLine: Record "No. Series Line", UsageDate: Date, HideErrorsAndWarnings: Boolean): Code[20]

Parameters

Name Type Description
NoSeriesLine Record "No. Series Line"

The No. Series line to use.

UsageDate Date

The date of retrieval, this will influence which line is used.

HideErrorsAndWarnings Boolean

Whether errors should be ignored.

Returns

Type Description
Code[20]

The next number in the series, if HideErrorsAndWarnings is true and errors occur, a blank code is returned.

GetLastNoUsed

Get the last number used in the No. Series.

procedure GetLastNoUsed(NoSeriesLine: Record "No. Series Line"): Code[20]

Parameters

Name Type Description
NoSeriesLine Record "No. Series Line"

The No. Series line to use.

Returns

Type Description
Code[20]

The last number used in the series.

MayProduceGaps

Specifies whether the implementation may produce gaps in the No. Series. For some business scenarios it is important that the No. Series does not produce gaps. This procedure is used to verify that does not happen.

procedure MayProduceGaps(): Boolean

Returns

Type Description
Boolean

Whether it is possible that the implementation will produce gaps.

See also