If you’re treating stock purchases as an asset then whenever you make a sale you’d also need to journal the cost price of whatever you sold across from stock to a purchase nominal such as “General purchases” for it to show the correct cost of sales in your profit and loss. An easier approach would be to treat your stock as general purchases to start with, and just correct for opening and closing stock with journals at the year end to get the right whole year profit.
This thread has more details.