Update Method (PoLine)
- Last UpdatedNov 06, 2025
- 3 minute read
The Update() method updates all columns of the specified purchase order line item record in the PO_Line table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal poId As String, _
ByVal poLineNo As Integer, _
ByVal itemId As String, _
ByVal vendorItemId As DBString, _
ByVal quantity As Double, _
ByVal uomId As DBInt, _
ByVal minQuantity As Double, _
ByVal maxQuantity As DBDouble, _
ByVal linePrice As DBDouble, _
ByVal requiredByLocal As DBDateTime, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByVal lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim poId As String
Dim poLineNo As Integer
Dim itemId As String
Dim vendorItemId As DBString
Dim quantity As Double
Dim uomId As DBInt
Dim minQuantity As Double
Dim maxQuantity As DBDouble
Dim linePrice As DBDouble
Dim requiredByLocal As DBDateTime
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
PoLine.Update(sessionId, poId, poLineNo, itemId, vendorItemId, quantity, uomId, minQuantity, maxQuantity, linePrice, requiredByLocal, spare1, spare2, spare3, spare4, lastEditComment, lastEditAt)
public static void Update(
int sessionId,
string poId,
int poLineNo,
string itemId,
DBString vendorItemId,
double quantity,
DBInt uomId,
double minQuantity,
DBDouble maxQuantity,
DBDouble linePrice,
DBDateTime requiredByLocal,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
DateTime lastEditAt
)
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.
- poLineNo
- Required. Holds a number that identifies the line item in the purchase order.
- itemId
- Required. Holds the ID of the item being ordered.
- vendorItemId
- Required. Holds the ID used by the vendor to identify the item being ordered.
- quantity
- Required. Holds the nominal amount of the item being ordered.
- uomId
- Required. Holds the ID of the unit of measure of the item for the purchase order. This ID will override the item's nominal unit of measure from the Item table.
- minQuantity
- Required. Holds the minimum quantity that, once shipped, will allow the purchase order to be completed. If null is supplied, the value defaults to the quantity value.
- maxQuantity
- Required. Holds the maximum quantity that can be shipped against this line item. A null value indicates no limit.
- linePrice
- Required. Holds the total price for this line item.
- requiredByLocal
- Required. Holds the date when the goods for this line are required in the local time of the entity to which the goods are shipped, specified by the ship_to column in the PO's record. If a ship-to entity is not specified, the default time zone will be used to determine the local time.
- spare1
- Required. Holds the contents of the user-defined spare1 field.
- spare2
- Required. Holds the contents of the user-defined spare2 field.
- spare3
- Required. Holds the contents of the user-defined spare3 field.
- spare4
- Required. Holds the contents of the user-defined spare4 field.
- lastEditComment
- Required. Holds comments that describes why this record is being added.
- lastEditAt
Required. Holds the date/time when this record was added or last edited, 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 this record was updated by this called method.