A wrong stock entry is deleted (removes both its weight and its amount everywhere — stock, P&L and this day's total) and then entered again.