InvTransferSource Constructor
- Last UpdatedNov 06, 2025
- 2 minute read
The InvTransferSource() method is the constructor for the InvTransferSource class. It sets all fields in the class.
'Declaration
Public Function New( _
ByVal fromRowId As Integer, _
ByVal fromStorageEntId As Nullable(Of Integer), _
ByVal transferQty As Nullable(Of Double), _
ByVal transferQtyErp As Nullable(Of Double), _
ByVal transferComments As String, _
ByVal lastEditAt As Nullable(Of Date) _
)
'Usage
Dim fromRowId As Integer
Dim fromStorageEntId As Nullable(Of Integer)
Dim transferQty As Nullable(Of Double)
Dim transferQtyErp As Nullable(Of Double)
Dim transferComments As String
Dim lastEditAt As Nullable(Of Date)
Dim instance As New InvTransferSource(fromRowId, fromStorageEntId, transferQty, transferQtyErp, transferComments, lastEditAt)
public InvTransferSource(
int fromRowId,
Nullable<int> fromStorageEntId,
Nullable<double> transferQty,
Nullable<double> transferQtyErp,
string transferComments,
Nullable<DateTime> lastEditAt
)
Parameters
- fromRowId
- Required. Holds a row_id value from the Item_Inv table.
- fromStorageEntId
- Optional. Holds the entity from which the inventory is to be transferred.
- transferQty
- Optional. Holds the quantity to be transferred.
- transferQtyErp
- Optional. Holds the transfer quantity to be reported to an external ERP system.
- transferComments
- Optional. Holds notes pertaining to the transfer.
- lastEditAt
- Optional. Holds the date and time when the inventory record was last created or modified. This parameter is used for optimistic concurrency control.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.