How I can enter transaction related to purchase or sale return?
There are Guides covering this and most other functions. The one for customer returns is: Use credit notes for customer returns and refunds | Manager. There is a corresponding one for suppliers.
You should always check the Guides first when you have a question.