Add Method (ReceiptLot)
- Last UpdatedNov 06, 2025
- 2 minute read
The Add() method adds a new receipt lot record to the Receipt_Lot table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal poId As String, _
ByVal dateReceivedUtc As Date, _
ByVal itemId As String, _
ByVal lotNo As String, _
ByVal sublotNo As String, _
ByVal quantity 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 poId As String
Dim dateReceivedUtc As Date
Dim itemId As String
Dim lotNo As String
Dim sublotNo As String
Dim quantity As Double
Dim uomId As Nullable(Of Integer)
Dim transId As Nullable(Of Integer)
Dim lastEditAt As Date
Dim rowId As Integer
ReceiptLot.Add(sessionId, poId, dateReceivedUtc, itemId, lotNo, sublotNo, quantity, uomId, transId, lastEditAt, rowId)
public static void Add(
int sessionId,
string poId,
DateTime dateReceivedUtc,
string itemId,
string lotNo,
string sublotNo,
double quantity,
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.
- poId
- Required. Holds the ID of the purchase order, in the Receipt table, with which the goods received are associated.
- dateReceivedUtc
- Required. Holds the date and time, in the Receipt table, when the goods were received, in UTC.
- itemId
- Required. Holds the ID of the item, in the Receipt table, for the goods received.
- lotNo
- Optional. Holds the lot number of the goods received.
- sublotNo
- Optional. Holds the sublot number of the goods received.
- quantity
- Required. Holds the quantity of the goods received.
- uomId
- Optional. Holds the identifier of the unit of measure for the goods received.
- transId
- Optional. Holds the transfer identifier, from the Item_Transfer table, for the goods received.
- 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 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.