I made a free/open source module for this: GitHub - zacharymelo/doli-returns: A module for managing product returns in Dolibarr · GitHub
It does most of what you want, which is handle the flow of products back into stock and the crediting process. I am still working on it, and it’s tested up to v22.
The module adds a new object type ‘Customer Returns’ which are objects that you can create by selecting a third party, which will show all their shipments with lines from the shipment displayed. Select the coresponding shipment and it will move the specific serial/product back into the specified warehouse.
I use this module with a warranty/rma module I built, but credit generating would come from a closed return. I haven’t tested that part really, as it’s not how I use the module.




