Advanced planning and scheduling system that performs long, mid and short term finite-capacity scheduling across sales, manufacturing and purchasing in a single module, with orders pegged from sales through purchasing.