InventoryMorph(Int32,Double,Int32,String,String,String,Object,Object,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The InventoryMorph() method moves inventory and optionally change item/lot information to destination.
If optionally filtering the results by a specific entity, overload of the method specifies the entity by its supplied input parameters.
'Declaration
Public Overloads Shared Function InventoryMorph( _
ByVal fromRowId As Integer, _
ByVal transferQty As Double, _
ByVal toEntId As Integer, _
ByVal toItemId As String, _
ByVal toLotNo As String, _
ByVal transferOption As String, _
ByVal toGradeCd As Object, _
ByVal toStatusCd As Object, _
ByVal transferComments As String _
) As Boolean
public static bool InventoryMorph(
int fromRowId,
double transferQty,
int toEntId,
string toItemId,
string toLotNo,
string transferOption,
object toGradeCd,
object toStatusCd,
string transferComments
)
Parameters
- fromRowId
- Required. Holds the ID of the inventory row from which the inventory will be transferred.
- transferQty
- Required. Holds the amount of inventory to transfer.
- toEntId
- Required. Holds the ID of the storage entity to which the inventory quantity is being transferred.
- toItemId
- Required. Holds the new item ID for the transferred inventory.
- toLotNo
- Required. Holds the lot number of the item that will be stored in the destination location.
- transferOption
- Optional. Holds the code to determine how a conflict should be resolved if inventory is moved to an entity that contains the same item and lot with different grade, status, or expiry. The value 2 means update the source row to match the destination and the value 3 means update the destination to match the source.
- toGradeCd
- Optional. Holds the new status code to give the Inventory record.
- toStatusCd
- Optional. Holds the new grade code to give the Inventory record.
- transferComments
- Optional. Holds a comment describing the inventory morph.