update the stock sell/sell all function