Managing procurement and production outsourcing under dynamic prices