About profit and loss statement

I dont see purchase,opening stock and closing stock details in profit and loss statement.

Please help me for this

In ERPNext, your stock is updated automatically for every transaction. Check perpetual inventory:

https://erpnext.com/user-guide/stock/accounting-of-inventory-stock/perpetual-inventory