TransferInventory Method
- Last UpdatedNov 06, 2025
- 1 minute read
The TransferInventory() method transfers a specified amount of inventory from one entity to another.
'Declaration
Public Shared Function TransferInventory( _
ByVal destEntID As Integer, _
ByVal destLotNo As String, _
ByVal sourceRowID As Integer, _
ByVal transferQty As Double, _
ByVal transferComments As String, _
ByVal transferConflictOption As Storage.TransferConflictOption _
) As Boolean
public static bool TransferInventory(
int destEntID,
string destLotNo,
int sourceRowID,
double transferQty,
string transferComments,
Storage.TransferConflictOption transferConflictOption
)
Parameters
- destEntID
Required. Holds the ID of the entity to where the inventory is being transfered.
- destLotNo
Optional. Holds the new lot number for the inventory. Set to null if the transfered inventory should maintain the same lot number.
- sourceRowID
Required. Holds the ID of the row in the Item_Inv table containing the inventory to transfer.
- transferQty
Required. Holds the amount of inventory to transfer.
- transferComments
Optional. Holds the comments to include in the inventory transfer record. Set to null if no comments are required.
- transferConflictOption
- Required. Holds a flag that, if set to true, specifies that indicate how a conflict in item grade, item status, or expiry between the source and destination should be handled.
Return Value
Returns true if the inventory is transfered or false if the user cancels the transfer.