 Library
Library
Products_costhistory Database Table
Log of cost changes observed for products. A change record is also written even if the cost is identical so that a complete history can be built.
Fields
- physkey
- #100, Datatype: String 44 bytes
- dtu
- #110, Datatype: DateTime
 Date/time UTC this change was recorded
- pid
- #111, Datatype: Integer
 Product Id
- spid
- #112, Datatype: Integer
 Supplier Id
- locid
- #113, Datatype: Integer
 Location Id for this record
- flags
- #114, Datatype: Integer
 Various internal processing flags for this recordPossible ValuesBitmask Description 1 Reversed 2 Manual Edit 
- prevcost
- #120, Datatype: Money/Currency
 Cost recorded in products.lastcost when this record was added. This might not be the previous cost for the product depending on system configuration
- newcost
- #121, Datatype: Money/Currency
 New cost captured for this product
- reason
- #122, Datatype: Integer
 Coded number indicating where and how this record originated fromPossible ValuesValue Description 1 Purchase order receive 
- physkeyref
- #123, Datatype: String 44 bytes
 Physkey of source record that triggered this record