Share via


InventModelType_StdCost.checkInventOnHand Method [AX 2012]

Indicates whether the inventory on hand is valid.

Syntax

public boolean checkInventOnHand(InventOnhand _inventOnhand, [boolean _checkOnly])

Run On

Called

Parameters

  • _checkOnly
    Type: boolean
    A Boolean value that indicates whether an exception 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

The check is implemented to make sure calculations done in parallel do not conflict.

See Also

Reference

InventModelType_StdCost Class