Purchase / Sales Invoices

I have created my chart of accounts and control accounts
but when I book any new invoice (Purchase/Sales) the P&L side does not go to my accounts it create new accounts such as

Inventory Cost
Inventory Sales

how to fix this

Because those are the default accounts for posting revenue and cost of goods sold associated with sale of inventory items. If you want to change them, you must edit the inventory items themselves.