InventUpdate.whsUpdateWorkTransDimIssue Method [AX 2012]
Change work dimensions for WHS.
Syntax
public InventQty whsUpdateWorkTransDimIssue(
InventTrans _inventTrans,
InventDim _fromInventDim,
InventDim _toInventDim,
InventQty _qty)
Run On
Server
Parameters
- _inventTrans
Type: InventTrans Table
The inventTrans records.
- _fromInventDim
Type: InventDim Table
The original InventDim record.
- _toInventDim
Type: InventDim Table
The new InventDim record to which the transaction is synchronized.
- _qty
Type: InventQty Extended Data Type
/// The specified quantity.
Return Value
Type: InventQty Extended Data Type
The updated quantity.
Exceptions
Exception | Condition |
---|---|
Error | Quantity cannot be reserved because there is not enough inventory available. |
Remarks
Did not use the standard routine as it doesn't account for the unique way WHS reserves inventory for work.
Also, work dim changes don't allow dim changes when not enough quantity is available, it fails the transaction unless the entire quantity passed in is available in the new dimension.
This assumes this is only a work type inventTrans record, do NOT use for anything else.