Coordination of production and distribution planning