StockState tracking for SQL reports