stock_amount hook to ensure INT quantity. Closes #2773