📚 SAP Business One SDK Help

GetDueDate Method
See Also 
CardCode
Specifies the business partner code.
refDate
Specifies the reference date.

Description

Returns the due date for a specified business partner based on the business partner code and the reference date.

See Get Due Date sample.

Syntax

Visual Basic
Public Function GetDueDate( _
   ByVal CardCode As String, _
   ByVal refDate As Date _
) As Recordset

Parameters

CardCode
Specifies the business partner code.
refDate
Specifies the reference date.

Return Type

A Recordset object that contains one field named DueDate that holds the due date value.

Exceptions

-2000 The connection with the database has been disconnected.

Remarks

When you create a document, you can use this method to get the due date of that document using the business partner code and document date.

The due date is defined in the customer payment terms, in the business partner master record. You can change the due date when you create the document.

Example

See Also