master: combined addStock and updateStock method.