Return of sold inventory items

How can I return a sold product back to the supplier so that I should first got a return slip from customer on the rate it is sold and also should be added to inventory of items and then if I want to return back this item to the supplier and gets a refund from suppler. So, how it should be done so that it should keep proper record of accounts and inventory.

I created topic before, you can read in Giving products back from sales and purchases.
Credit note is used for returns