Compartir a través de


InventItemPrice::updateLastPrice Method

Updates or creates a last price record.

Syntax

client server public static void updateLastPrice(
    InventTableModule _inventTableModule, 
    CostingVersionPriceType _priceType, 
    InventDim _inventDim)

Run On

Called

Parameters

  • _inventTableModule
    Type: InventTableModule Table
    The price record is based on the values in the inventTableModule table.
  • _inventDim
    Type: InventDim Table
    Specifies which dimensions combination for which the price is created.

Remarks

This method keeps a history of all prices if the parameter LastPriceHistory is enabled.

This method inserts new records instead of updating an existing record because the CreatedDateTime field is only assigned a value by the kernel when it inserts a new record.

See Also

Reference

InventItemPrice Table