GetAll Method (SoLine)
- Last UpdatedNov 06, 2025
- 4 minute read
'Declaration
Public Shared Function GetAll( _
ByVal custId As String, _
ByVal poId As String, _
ByVal soLineNo As Nullable(Of Integer), _
ByVal itemId As String, _
ByVal customerItemId As String, _
ByVal uomId As Nullable(Of Integer), _
ByVal requiredByUtc As Nullable(Of Date), _
ByVal requiredByLocal As Nullable(Of Date), _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String, _
ByVal lastEditBy As String, _
ByVal lastEditAt As Nullable(Of Date) _
) As DataSet
'Usage
Dim custId As String
Dim poId As String
Dim soLineNo As Nullable(Of Integer)
Dim itemId As String
Dim customerItemId As String
Dim uomId As Nullable(Of Integer)
Dim requiredByUtc As Nullable(Of Date)
Dim requiredByLocal As Nullable(Of Date)
Dim spare1 As String
Dim spare2 As String
Dim spare3 As String
Dim spare4 As String
Dim lastEditBy As String
Dim lastEditAt As Nullable(Of Date)
Dim value As DataSet
value = SoLine.GetAll(custId, poId, soLineNo, itemId, customerItemId, uomId, requiredByUtc, requiredByLocal, spare1, spare2, spare3, spare4, lastEditBy, lastEditAt)
public static DataSet GetAll(
string custId,
string poId,
Nullable<int> soLineNo,
string itemId,
string customerItemId,
Nullable<int> uomId,
Nullable<DateTime> requiredByUtc,
Nullable<DateTime> requiredByLocal,
string spare1,
string spare2,
string spare3,
string spare4,
string lastEditBy,
Nullable<DateTime> lastEditAt
)
Parameters
- custId
- Optional filter parameter. Holds a customer ID.
- poId
- Optional filter parameter. Holds the ID of a customer's purchase order.
- soLineNo
- Optional filter parameter. Holds a number that identifies a line item in a sales order.
- itemId
- Optional filter parameter. Holds the ID of an item being ordered.
- customerItemId
- Optional filter parameter. Holds the ID used by the customer to identify an item being ordered.
- uomId
- Optional filter parameter. Holds the ID of the unit of measure for a line item.
- requiredByUtc
- Optional filter parameter. Holds the date when the goods for a line item are required, in UTC.
- requiredByLocal
- Optional filter parameter. Holds the date when the goods for this line are required in the local time of the entity from which the goods are shipped, specified by the ship_from column in the SO's record. If a ship-from entity is not specified, the default time zone will be used to determine the local time.
- spare1
- Optional filter parameter. Holds the contents of the user-defined spare1 field.
- spare2
- Optional filter parameter. Holds the contents of the user-defined spare2 field.
- spare3
- Optional filter parameter. Holds the contents of the user-defined spare3 field.
- spare4
- Optional filter parameter. Holds the contents of the user-defined spare4 field.
- lastEditBy
- Optional filter parameter. Holds the user who created or last updated the record.
- lastEditAt
- Optional filter parameter. Holds the date and time that the record was added or last updated.
Return Value
Returns a DataSet that contains records for all the sales order line items that satisfy the specified filters. The returned records include columns from the SO_Line, Cust, Item, and UOM tables. If no matching sales order line items are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Names |
Description |
|---|---|
|
cust_id |
A string that is the customer ID, from the SO_Line table. |
|
po_id |
A string that is the customer's purchase order ID, from the SO_Line table. |
|
so_line_no |
An integer that is the line number in the sales order, from the SO_Line table. |
|
item_id |
A string that is the ID of the item being ordered, from the SO_Line table. |
|
customer_item_id |
A string that is the ID that the customer uses to refer to the item being ordered, from the SO_Line table. |
|
item_desc |
A string that is the description of the item being ordered, from the Item table. |
|
num_decimals |
An integer that is the number of decimals allowed for the item being ordered, from the Item table. |
|
quantity |
A double that is the amount of the item being ordered, from the SO_Line table. |
|
uom_id |
An integer that is the ID of the unit of measure for the item being ordered, from the SO_Line table. |
|
description |
A string that is the description of the unit of measure for the item being ordered, from the UOM table. |
|
min_qty |
A double that is the minimum quantity that, once shipped, will allow the order to be completed, from the SO_Line table. |
|
max_qty |
A double that is the maximum quantity that may be shipped against this line item, from the SO_Line table. A null value indicates no limit. |
|
line_price |
A double that is the total price for this line item, from the SO_Line table. |
|
reqd_by_local |
A datetime that is the date when the goods for this line are required in the local time of the entity from which the goods are shipped, specified by the ship_from column in the SO's record, from the SO_Line table. If a ship-from entity is not specified, the default time zone will be used to determine the local time. |
|
reqd_by_utc |
A datetime that is the UTC date when the line item is required, from the SO_Line table. |
|
spare1 |
A string that is the content of the user-defined spare1 field. |
|
spare2 |
A string that is the content of the user-defined spare2 field. |
|
spare3 |
A string that is the content of the user-defined spare3 field. |
|
spare4 |
A string that is the content of the user-defined spare4 field. |
|
cust_name |
A string that the name of the customer identified by cust_id, from the Cust table. |
|
last_edit_comment |
A string that contains comments about why the record was added or updated. |
|
last_edit_by |
A string that is the ID of the user who added or last updated this record. |
|
last_edit_at |
>A datetime that indicates when the record was added or last updated. |
|
mod_id |
The current modification ID of the record in the table. This ID is binary number that increments each time the record’s table row is modified. Optionally used for optimistic concurrency control when performing updates or deletes. |