Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.