This paper considers an inventory control policy for a two-echelon inventory control system with one supplier-one buyer. We consider the case of deteriorating items which lead to shortage in supply chain. Therefore, it is necessary to decrease the deterioration rate by adding some specification to the packaging of these items that is known as active packaging. Although this packaging can reduce the deteriorating rate of products, but may be increases the cost of both supplier and buyer. Because of the complexity of the mathematical model, a genetic algorithm has been developed to determine the best policy of this inventory control system.