In this paper we present an optimal procedure for finding the replenishment schedule for an inventory system with shortages, in which items deteriorate at a constant rate and demand rates are decreasing over a known and finite planning horizon. A numerical example is presented to illustrate the procedure.