Optimal stock management and allocation of inventory to orders will ensure greater customer satisfaction, stock optimization, cost reductions and maximization of company turnover. However, at a particular time, this optimal allocation may become less than ideal, due to unforeseen circumstances within the company. In this case a reallocation of inventory to orders will be necessary.