Codeunit "No. Series - Setup"
ID 299
Namespace: Microsoft.Foundation.NoSeries
Provides helper methods used in the setup of No. Series and No. Series lines.
Properties
| Name | Value |
|---|---|
| Access | Public |
Methods
CalculateOpen
Verifies the state of a line and returns whether or not the line is open and can be used to generate a new No.
procedure CalculateOpen(NoSeriesLine: Record "No. Series Line"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| NoSeriesLine | Table Microsoft.Foundation.NoSeries."No. Series Line" |
the No. Series Line to verify. |
Returns
| Type | Description |
|---|---|
| Boolean |
Returns true if the line is open, false if the line is closed. |
IncrementNoText
Obsolete
This element will become obsolete from version 27.0. Use IncStr(No, Increment) instead.
Increments the given No. by the specified Increment.
[Obsolete(Use IncStr(No, Increment) instead.,27.0)]
procedure IncrementNoText(No: Code[20], Increment: Integer): Code[20]
Parameters
| Name | Type | Description |
|---|---|---|
| No | Code[20] |
The number, as a code string to increment |
| Increment | Integer |
Indicates by how much to increment the No. |
Returns
| Type | Description |
|---|---|
| Code[20] |
The incremented No. |
UpdateNoSeriesLine
Updates the different No. fields in the No. Series Line based on the pattern provided in the NewNo parameter.
procedure UpdateNoSeriesLine(var NoSeriesLine: Record "No. Series Line", NewNo: Code[20], NewFieldCaption: Text[100])
Parameters
| Name | Type | Description |
|---|---|---|
| NoSeriesLine | Table Microsoft.Foundation.NoSeries."No. Series Line" |
The No. Series Line to update. |
| NewNo | Code[20] |
The new No. used as template to update the fields. |
| NewFieldCaption | Text[100] |
The No. Series Line to update. |