Cost of Goodsӯld (COGS) refers to expenses related directly to producing or purchasing inventory items for sale or resale. Inventory is a line item
How COGS Works with Inventory

Software
controller
http://chieffinancialofficer.blog/controller/how-cogs-works-with-inventory