Share via


InventCostUpdate.lockPrice Method [AX 2012]

Handles the locking of the InventItemPrice records to ensure that a new price is not entered.

Syntax

protected void lockPrice()

Run On

Server

Exceptions

Exception Condition
UpdateConflict

A new InventItemPrice record is found and this record needs to be taken into consideration.

The transaction must be restarted.

UpdateConflict

A new InventItemPrice record is found and this record needs to be taken into consideration. The transaction must be restarted.

Remarks

This method locks the used InventItemPrice records and then checks whether a new price has been entered. If a new price has been entered, it throws an exception so that the transaction is restarted.

See Also

Reference

InventCostUpdate Class