WHSContainerTable::packItem Method
Packs an item into the container.
Syntax
client server public static void packItem(
ItemId _itemId,
Qty _qty,
UnitOfMeasureSymbol _unitId,
WHSContainerId _containerId,
WHSTmpPackingLine _tmpPackingLine,
InventDim _inventDimCriteria)
Run On
Called
Parameters
- _itemId
Type: ItemId Extended Data Type
The item Id of the item bieng packed.
- _qty
Type: Qty Extended Data Type
The Qty of the item being packed.
- _unitId
Type: UnitOfMeasureSymbol Extended Data Type
The unit of measure the qty being packed is stored in.
- _containerId
Type: WHSContainerId Extended Data Type
The container Id of the container the item is bieng packed into.
- _tmpPackingLine
Type: WHSTmpPackingLine Table
A WHSTmpPackingLine table buffer which holds the available inventory to pack.
- _inventDimCriteria
Type: InventDim Table
The inventory diemnsion criteria which must be met by the inventory being packed.
Exceptions
Exception | Condition |
---|---|
Error | The item does not exist in the WHSTmpPackingLine table buffer. -or- The container does not exists for this shipment. -or- The container is in a closed status. -or- You can only pack one inventory at a time if serial is being captured at packing. -or- The serial Id was not entered during capture. -or- There is not enough available inventory to be packed. |