InventModelType.checkInventOnHand Method [AX 2012]
Indicates whether the inventory available is valid.
Syntax
public boolean checkInventOnHand(InventOnhand _inventOnhand, [boolean _checkOnly])
Run On
Called
Parameters
- _inventOnhand
Type: InventOnhand Class
The InventOnHand object.
- _checkOnly
Type: boolean
A Boolean value that indicates whether no exceptions will be thrown.
Return Value
Type: boolean
true if the inventory on-hand is valid; otherwise, false.
Exceptions
Exception | Condition |
---|---|
UpdateConflict | The inventory on-hand is invalid because of an update conflict. |
Error | The inventory on-hand is invalid because of an error. |
Remarks
This check is implemented to make sure calculations done in parallel do not conflict.
An example of a conflict is when two parallel standard cost transactions see the same available values and both determine to round the inventory value. For standard cost, the available check validates that the standard cost times the available quantity is equal to the available inventory value.