This work deals with the integration of production planning and scheduling. The proposed model considers the quality and allocation of products at the terminal. We propose a branch-and-price algorithm capable to solve real instances. The model and methodology is general enough to be adapted to several situations.