Skip to content

KVSKBANoSeriesMgt#

Procedures#

GetNextNo(Code[20], Code[20], Date, Boolean, Code[20], Code[20]) :#

Summary: Returns a new number and the used number series by utilizing the standard codeunit "No. Series". UsedNoSeries takes priority in getting the next new number. If there is no valid UsedNoSeries, DefaultNoSeries will be used.

procedure GetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; UsageDate: Date; HideErrorsAndWarnings: Boolean; var NewNoSeries: Code[20]; var NewNo: Code[20]): 

Parameters:

  • DefaultNoSeries: The Number Series Code located in the corresponding setup table
  • UsedNoSeries: The Number Series Code located in the same table the new number is for
  • UsageDate: The date of retrieval, this will influence which line is used
  • HideErrorsAndWarnings: Whether errors should be ignored
  • NewNoSeries: The Number Series that is used for the new Number
  • NewNo: The new Number generated from the NewNoSeries

GetNextNo(Code[20], Code[20], Boolean, Code[20], Code[20]) :#

Summary: Returns a new number and the used number series by utilizing the standard codeunit "No. Series". UsedNoSeries takes priority in getting the next new number. If there is no valid UsedNoSeries, DefaultNoSeries will be used.

procedure GetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; HideErrorsAndWarnings: Boolean; var NewNoSeries: Code[20]; var NewNo: Code[20]): 

Parameters:

  • DefaultNoSeries: The Number Series Code located in the corresponding setup table
  • UsedNoSeries: The Number Series Code located in the same table the new number is for
  • HideErrorsAndWarnings: Whether errors should be ignored
  • NewNoSeries: The Number Series that is used for the new Number
  • NewNo:

GetNextNo(Code[20], Code[20], Date, Code[20], Code[20]) :#

Summary: Returns a new number and the used number series by utilizing the standard codeunit "No. Series". UsedNoSeries takes priority in getting the next new number. If there is no valid UsedNoSeries, DefaultNoSeries will be used.

procedure GetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; UsageDate: Date; var NewNoSeries: Code[20]; var NewNo: Code[20]): 

Parameters:

  • DefaultNoSeries: The Number Series Code located in the corresponding setup table
  • UsedNoSeries: The Number Series Code located in the same table the new number is for
  • UsageDate: The date of retrieval, this will influence which line is used
  • NewNoSeries: The Number Series that is used for the new Number
  • NewNo:

GetNextNo(Code[20], Code[20], Code[20], Code[20]) :#

Summary: Returns a new number and the used number series by utilizing the standard codeunit "No. Series". UsedNoSeries takes priority in getting the next new number. If there is no valid UsedNoSeries, DefaultNoSeries will be used.

procedure GetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; var NewNoSeries: Code[20]; var NewNo: Code[20]): 

Parameters:

  • DefaultNoSeries: The Number Series Code located in the corresponding setup table
  • UsedNoSeries: The Number Series Code located in the same table the new number is for
  • NewNoSeries: The Number Series that is used for the new Number
  • NewNo:

SetDefaultSeries(Code[20], Code[20]) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

[Obsolete('This procedure is only supported up to BC26, please use Standard NoSeries.IsAutomatic in the BC26', '25.1')]
procedure SetDefaultSeries(var NewNoSeriesCode: Code[20]; NoSeriesCode: Code[20]): 

Events#

OnBeforeGetNextNo(Code[20], Code[20], Date, Boolean, Code[20], Code[20], Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeGetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; UseDate: Date; HideErrorsAndWarnings: Boolean; var NewNoSeries: Code[20]; var NewNo: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBANoSeriesMgt", 'OnBeforeGetNextNo', '', false, false)]
local procedure DoSomethingOnBeforeGetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; UseDate: Date; HideErrorsAndWarnings: Boolean; var NewNoSeries: Code[20]; var NewNo: Code[20]; var IsHandled: Boolean)
begin
end;

OnAfterGetNextNo(Code[20], Code[20], Date, Boolean, Code[20], Code[20]) :#

[IntegrationEvent(false, false)]
local procedure OnAfterGetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; UseDate: Date; HideErrorsAndWarnings: Boolean; var NewNoSeries: Code[20]; var NewNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBANoSeriesMgt", 'OnAfterGetNextNo', '', false, false)]
local procedure DoSomethingOnAfterGetNextNo(DefaultNoSeries: Code[20]; UsedNoSeries: Code[20]; UseDate: Date; HideErrorsAndWarnings: Boolean; var NewNoSeries: Code[20]; var NewNo: Code[20])
begin
end;

OnBeforeSetDefaultSeries(Code[20], Code[20], Boolean) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

[Obsolete('This event is only supported up to BC26, please use Standard NoSeries.IsAutomatic in the BC26', '25.1')]
[IntegrationEvent(false, false)]
local procedure OnBeforeSetDefaultSeries(var NewNoSeriesCode: Code[20]; NoSeriesCode: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBANoSeriesMgt", 'OnBeforeSetDefaultSeries', '', false, false)]
local procedure DoSomethingOnBeforeSetDefaultSeries(var NewNoSeriesCode: Code[20]; NoSeriesCode: Code[20]; var IsHandled: Boolean)
begin
end;