InventoryMorph(Int32,Double,Int32,String,String,String) Method
- Last UpdatedNov 06, 2025
- 1 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.
public static bool InventoryMorph(
int fromRowId,
double transferQty,
int toEntId,
string toItemId,
string toLotNo,
string transferOption
)
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.