InventModelType_MovingAverage.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 available is valid; otherwise, false.
Exceptions
Exception | Condition |
---|---|
UpdateConflict | The inventory available is invalid because of an update conflict. |
Error | The inventory available is invalid because of an error. |
Remarks
The check is implemented to make sure calculations done in parallel do not conflict.