GetNextDocNumbers Class
The GetNextDocNumbers class allows you to retrieve the next valid document number for several Microsoft Dynamics GP document types. To use the GetNextDocNumbers class you must first instantiate an object.
Inherits from the System.EnterpriseServices.ServicedComponent class.
Constructor
Name |
Description |
---|---|
GetNextDocNumbers() |
Initializes an instance of the GetNextDocNumbers class. |
Properties
Name |
Type |
Default |
Description |
---|---|---|---|
RequireProxyService |
boolean |
true |
Specifies whether to use the identify of the logged on user or the service identity when accessing SQL server. The value true forces the application to use the service identity. The value in this class overrides the RequireProxyService setting in the configuration file. |
Methods
Name |
Return Value |
Description |
---|---|---|
void |
Releases the resources of the GetNextDocNumbers object. |
|
string |
Retrieves the next general ledger journal entry document number. |
|
string |
Retrieves the next document number for a specified type of inventory document. |
|
string |
Retrieves the next purchase order number. |
|
string |
Retrieves the next purchase order receipt document number. |
|
string |
Retrieves the next document number for a specified type of receivable document. |
|
string |
Retrieves the next document number for a specified type of sales order document. |
|
string |
Retrieves the next payables management document number. |
|
void |
Returns one or more unused document numbers. |
|
void |
Sorts and rolls back a list of document numbers. |
Examples
The following Visual Basic .NET example creates a GetNextDocNumbers object:
'Instantiate a GetNextDocNumbers object Dim NextDocNumberObject As New GetNextDocNumbers