difference between return orders(purchase and sales) and credit memos(sales and purchase)

That’s exactly the part I wasn’t sure about. I did not check if there’s a posted document or not, but I am pretty sure that it does take care of inventory.