Add Method (ShipmentLot)
- Last UpdatedNov 06, 2025
- 2 minute read
The Add() method adds a new shipment lot record to the Shipment_Lot table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal custId As String, _
ByVal poId As String, _
ByVal soLineNumber As Integer, _
ByVal shipDateUtc As Date, _
ByVal lotNo As String, _
ByVal sublotNo As String, _
ByVal quantityShipped As Double, _
ByVal uomId As Nullable(Of Integer), _
ByVal transId As Nullable(Of Integer), _
ByRef lastEditAt As Date, _
ByRef rowId As Integer _
)
'Usage
Dim sessionId As Integer
Dim custId As String
Dim poId As String
Dim soLineNumber As Integer
Dim shipDateUtc As Date
Dim lotNo As String
Dim sublotNo As String
Dim quantityShipped As Double
Dim uomId As Nullable(Of Integer)
Dim transId As Nullable(Of Integer)
Dim lastEditAt As Date
Dim rowId As Integer
ShipmentLot.Add(sessionId, custId, poId, soLineNumber, shipDateUtc, lotNo, sublotNo, quantityShipped, uomId, transId, lastEditAt, rowId)
public static void Add(
int sessionId,
string custId,
string poId,
int soLineNumber,
DateTime shipDateUtc,
string lotNo,
string sublotNo,
double quantityShipped,
Nullable<int> uomId,
Nullable<int> transId,
out DateTime lastEditAt,
out int rowId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- custId
- Required. Holds the customer ID, from the Shipment table.
- poId
- Required. Holds the ID of a purchase order, from the Shipment table, with which the goods shipped are associated.
- soLineNumber
- Required. Holds the sales order line number, from the Shipment table, of the goods shipped.
- shipDateUtc
- Required. Holds the date and time when the goods were shipped, in UTC, from the Shipment table.
- lotNo
- Optional. Holds the lot number of the goods shipped.
- sublotNo
- Optional. Holds the sublot number of the goods shipped.
- quantityShipped
- Required. Holds the quantity of the goods shipped.
- uomId
- Optional. Holds the identifier of the unit of measure for the goods shipped.
- transId
- Optional. Holds the transfer identifier, from the Item_Transfer table, for the goods shipped.
- lastEditAt
- Output. Holds the returned date/time when this record was added. The lastEditAt parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
- rowId
- Output. Holds the returned unique row ID for the record that is added
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.