which situation requires a departure from the cost basis of accounting to the lower-of-cost-or-market basis in valuing inventory?