fix bug in stock sum. (id semantics error,
it's id of lot not product id)