How Should a Firm Manage Deteriorating Inventory?