How to handle product returns (create avoir + automatic stock reinjection)

Here’s my workflow:

  1. I create a quotation (devis) for the client.
  2. Then I convert it into a customer order (bon de commande).
  3. From the order, I generate a shipment (fiche d’expédition).
  4. After shipping, I create and validate the invoice (facture).
  5. The payment is recorded.

Now, the client is returning some of the products after everything was processed.

I want to do things the right way:

  • I plan to create an avoir (credit note) for the returned items.
  • But I also want the returned products to go back into stock automatically.

My questions:

  • What is the correct process to handle this situation in Dolibarr?
  • When I create a credit note, is there a way to automatically reinject the returned products into stock?
  • Is there a module or setting to help with automating this?

Thanks in advance for your help!
I’m using Dolibarr version [20.0.3].

Hi @Yassine

I don’t think Dolibarr has this type of functionality (Product return). You can find a module in Dolistore Product returns or you will have to develop one.

Best regards
Saikat Koley

If I understand you correctly, Dolibarr already has this function built-in

In the Stocks module enable

Decrease real stocks on validation of customer invoice/credit note.

When you validate a credit note you will be prompted for the warehouse to put the returning stock in. After the validation is complete the stock will have increased.

When you validate an invoice you will be prompted for a warehouse to take stock from. Stock will be decreased.

So you need to have the stocks module enabled in addition to the products module and have at least one warehouse.