Not maintain stock

If I don’t use stock, means all items stock is not maintained…how to set account setting so I can still book Cost Of Good Sold and view profit/loss statement?

I only use sales and purchase invoice…without delivery note or purchase receipt…

You may have to pass separate journal entries. What is the use case?