Inventory items have two costs, the one you enter on the item screen is just used to populate the purchase order as the most recent purchase price/cost.
Item average cost is determined when you enter a purchase for the item. Average cost is what populates to COGS when the item is sold. If you have not ordered the item, with qty and cost, then you have no average cost, thus the sale is 100% profit