Valuation of inventories in systems with product recovery