KanbanJobTmpPickListLoader.availableQuantityItemInventDimId Method [AX 2012]
Determines the available inventory for a specified item at a specified dimension.
Syntax
protected InventQty availableQuantityItemInventDimId(
ItemId _itemId,
Map _mapRequestedQuantities,
[InventQty _expectedNotAvailableQuantity])
Run On
Called
Parameters
- _itemId
Type: ItemId Extended Data Type
The ID of the item.
- _mapRequestedQuantities
Type: Map Class
A Map object of requested quantities by inventory dimension.
- _expectedNotAvailableQuantity
Type: InventQty Extended Data Type
A quantity that is not expected to be available and will not reduce the overall item availability.
Return Value
Type: InventQty Extended Data Type
The available quantity.
Exceptions
Exception | Condition |
---|---|
Error | A null Nothing nullptr unit a null reference (Nothing in Visual Basic) value was passed for the quantity map. -or- A negative value was found in the quantity map. |
Remarks
Available quantities are stored in a map and quantities available in the map are reduced so that inventory is not allocated more than one time.