Purchase invoice amount automaticaly goes to P&L report, how to solve this issue

purchase invoice ampount automaticaly goes to P&L report, how to solve this issue

Purchase invoice for what ?

Depending on what you have purchased, the amount could be posted directly to a P & L Expense account or it could be posted to an Balance Sheet Inventory account