when valuing items in inventory for financial reporting purposes, generally accepted accounting principles (gaap) requires firms to value the cost of goods sold by assuming that the items that have been in inventory the longest are the ones that are sold first.