Update Method (ShipmentLot)
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns for the specified shipment lot record in Shipment_Lot table.
A shipment lot record is uniquely identified by the row ID or by the combination of the customer ID, purchase order ID, sales order line number, date shipped, and lot number.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal rowId 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 _
)
'Usage
Dim sessionId As Integer
Dim rowId 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
ShipmentLot.Update(sessionId, rowId, custId, poId, soLineNumber, shipDateUtc, lotNo, sublotNo, quantityShipped, uomId, transId, lastEditAt)
public static void Update(
int sessionId,
int rowId,
string custId,
string poId,
int soLineNumber,
DateTime shipDateUtc,
string lotNo,
string sublotNo,
double quantityShipped,
Nullable<int> uomId,
Nullable<int> transId,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- rowId
- Required. Holds the unique row ID for the record that is being updated.
- custId
- Required. Holds the customer ID.
- poId
- Required. Holds the ID of a purchase order with which the goods shipped are associated.
- soLineNumber
- Required. Holds the sales order line number of the goods shipped.
- shipDateUtc
- Required. Holds the date and time when the goods were shipped, in UTC.
- lotNo
- Required. Holds the lot number of the goods shipped.
- sublotNo
- Required. Holds the sublot number of the goods shipped.
- quantityShipped
- Required. Holds the quantity of the goods shipped.
- uomId
- Required. Holds the identifier of the unit of measure for the goods shipped.
- transId
- Required. Holds the transfer identifier for the goods shipped.
- lastEditAt
Required. Holds the date/time when this record was added or last updated, for optimistic concurrency control. The passed value must match the lastEditAt value in the record for the update to succeed.
Output. Holds the date/time value when the record was updated by this called method.
The following parameters are used to uniquely identify the corresponding record in the Shipment table: custId, poId, soLineNumber, and shipDateUtc. When changing any of these parameters, make sure that you are still specifying the target shipment record that you want to update.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).