The basic arithmetic
Opening inventory, plus purchases and product costs, plus freight-in and landed costs, minus closing inventory, equals cost of goods sold.
One genuine simplification under the exemption: only direct material costs need capitalizing. Direct labor and indirect costs come off when incurred.