clsImportBusinessPartnersGetNewBusinessPartnerNumber Method
|
Fuction to suggest a next free number in OCRD. This function does not use the Number Series Function of SBO.
Namespace:
MARIInterface
Assembly:
MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntaxpublic string sGetNewBusinessPartnerNumber(
short nCompany,
clsImportBusinessPartnereCardType nCardType,
int lNumberSeries,
MPInterface oInterface
)
Public Function sGetNewBusinessPartnerNumber (
nCompany As Short,
nCardType As clsImportBusinessPartnereCardType,
lNumberSeries As Integer,
oInterface As MPInterface
) As String
Parameters
- nCompany
- Type: SystemInt16
- nCardType
- Type: MARIInterfaceclsImportBusinessPartnereCardType
Customer, Supplier - lNumberSeries
- Type: SystemInt32
SELECT NNM1.Series, NNM1.SeriesName FROM NNM1 INNER JOIN NNM3 ON NNM1.Series = NNM3.Series WHERE NNM3.ObjectCode=2 AND NNM1.DocSubType='C' ORDER BY SeriesName - oInterface
- Type: MARIInterfaceMPInterface
Return Value
Type:
String
Remarks
See Also