Sales to buyers who aren't customers
Selling surplus equipment isn't revenue, because the buyer isn't a customer for the entity's ordinary output. Since ASU 2014-09 and ASU 2017-05, ASC 610-20 governs it and borrows ASC 606's control and measurement rules: derecognize the asset when the buyer obtains control, and measure the consideration as ASC 606 would, including any noncash part at fair value. The gain or loss sits in income from continuing operations, inside operating income if that subtotal is shown, unless the asset is part of a discontinued operation. The SEC staff also says gains and losses on revenue-producing equipment are a separate line, not an adjustment to depreciation.