Cost per item and profit margin

Hello, I am new to ERP. I cannot figure out how to add cost into an item. I added a selling price as well as a buying price. However when running a sales order and checking the profit/loss report, ERP does not subtract the cost of the item from the sale. Any tips?

Profitability is done at the point of Invoice / Delivery based on your inventory (FIFO)