fix the bug that the stock quantities of the items is not updated when a
return happens