Returns the next number in the series associated with the user-defined object (UDO).
| Visual Basic |
|---|
Public Function GetNextSerialNumber( _ ByVal series As String, _ Optional ByVal ObjectType As String = "" _ ) As Long |
Relevant only for UDOs of type Document initiated with the Manage Series service.
Use this method to automatically set or display the document number on your form when the form is connected to a user-defined object of type Document.
In SAP Business One, document objects -- such as Invoice or Purchase Order -- are typically automatically numbered according to a predefined series associated with the document object.
For more information, see User-Defined Objects in the UI API.