purchase update stock and cogs