InventItemPrice::stdCostFindPrevLocked Method
Selects the previous standard cost price with a pessimistic lock.
Syntax
client server public static InventItemPrice stdCostFindPrevLocked(
ItemId _itemId,
InventDimId _inventDimId,
CreatedDateTime _createdDateTime)
Run On
Called
Parameters
- _itemId
Type: ItemId Extended Data Type
The item for which a price is to be found.
- _inventDimId
Type: InventDimId Extended Data Type
The inventory dimension ID for which a price should be found.
- _createdDateTime
Type: CreatedDateTime Extended Data Type
The created date time for which the first previous standard cost price should be found.
Return Value
Type: InventItemPrice Table
The previous standard cost price.
Remarks
This function uses the pessimistic lock hint value to make sure that the previous price is locked. This is required to prevent price changes when another transaction is still running.