Correcting a validated invoice in Dolibarr 23 and 24

Since version 23, a validated invoice does not always go back to draft. What blocks it, what you can still change without touching it, and the correction by credit note then new invoice, tested on Dolibarr 24.0.2 and 23.0.4.

Want someone to look at your instance? Diagnosis, fixed price €90.

Versions concerned
Dolibarr 23.0.4 and 24.0.2 (tested on 04/11/2026), compared with 22.0.5
What was checked (versions, tests, code read)

Tests on 04/11/2026 on fresh installations of Dolibarr 24.0.2, 23.0.4 and 22.0.5 (official Docker images, MariaDB 11.4, French company, French interface), driven by a browser like a user: invoice validated then Modify, after downloading the PDF, after preview, after sending by email (real sending to a test server), after a partial payment, with and without the Immutable Logs module; credit note with the same lines, credit applied on the original invoice, cloning and new invoice. Results read on screen and in the database. Rules read in the Dolibarr code (commoninvoice.class.php, master.inc.php). English screen names taken from Dolibarr's official language files.

You validate an invoice, you send it, and you spot the mistake: a price, a missing line, a description. Up to version 22, you clicked Modify, the invoice went back to draft, and that was it. Since version 23, that button often refuses. It is on purpose: on the French forum, Inovea, which takes part in Dolibarr’s development, explains it by the certification work and the immutable logs (thread “Modification des factures bloquée sur V23.0.0”).

This guide says when Modify still works, what you can change without it, and how to correct with a credit note then a new invoice. Everything was tested on 4 November 2026 on Dolibarr 24.0.2 and 23.0.4, and compared with 22.0.5. The tests used a French company and the French interface: the screenshots are in French, and the English screen names quoted here come from Dolibarr’s official language files. The email and payment blocks below do not depend on the country (read in the code); the replacement invoice does (section 4).

In short

What happened to the validated invoice 22.0.5 23.0.4 24.0.2
Nothing (just validated) Modify possible Modify possible Modify possible
PDF downloaded or opened in preview Modify possible Possible, except with the Immutable Logs module: blocked Modify possible, even with the logs
Sent by email from Dolibarr Modify possible Blocked Blocked
A payment entered, even partial Button missing Button missing Button missing

When it is blocked: credit note + new invoice (section 3).

1. What blocks going back to draft

On a validated invoice nothing else has happened to, Modify asks for a confirmation and the invoice goes back to draft. It keeps its number: once corrected and validated again, it is still the same invoice (checked in 23.0.4 and 24.0.2).

Three things prevent it:

  • Sending by email from Dolibarr (the invoice’s Send email button). The Modify button stays visible, but a click gives this message (“Disabled because invoice has already been sent by email at least once”):

Dolibarr 24.0.2 message when clicking Modify on an invoice sent by email (French interface)

  • A payment, even partial: the Modify button disappears.
  • Transfer to accounting: read in the Dolibarr code (the invoice is refused if its lines are already in the ledger), not tested here.

The PDF case. In 23.0.4, if the Immutable Logs module is enabled, a simple preview (the magnifying glass) or a download of the PDF is enough to block it:

Dolibarr 23.0.4 with immutable logs: refused after a preview of the PDF (French interface)

That is the case described on the forum in March 2026: you check the PDF, you see the mistake, and it is already too late. In 24.0.2, with the same module enabled, preview and download no longer block. Without the module, they do not block in 23.0.4 either. On our fresh installations, the module was not enabled by default.

The right habit: read the PDF before sending it. As long as the invoice has not been sent by Dolibarr, paid or transferred to accounting, Modify works in 24.0.2.

2. What you can change without going back to draft

On a validated invoice, even one already sent, several fields keep their pencil: Ref. customer (at the top of the card), Origin, Payment Terms, Payment due on, Payment method, Default BAN (default bank account) and Dispute.

The fields you can still edit on a validated, sent invoice, Dolibarr 24.0.2 (French interface)

A mistake in the due date, the payment method or the customer’s order reference can therefore be fixed directly. The lines, the prices, the invoice date and the customer cannot be changed any more.

3. Correct with a credit note, then a new invoice

This is the procedure given by Inovea in the same forum thread: a credit note on the wrong invoice, then a new invoice. Tested end to end on an invoice of €1,380 incl. VAT sent by email.

  1. On the invoice, click Create credit note. Keep Credit note from set to the invoice to correct and tick Create Credit Note with lines from the origin invoice. Create the draft.

The credit note form, with the lines copied (French interface)

  1. The credit note takes all the lines in negative (−€1,150 excl. VAT, −€1,380 incl. VAT). Validate it.
  2. On the validated credit note, click Mark as credit available. The amount becomes a credit of the customer.

The validated credit note: negative lines and the Mark as credit available button (French interface)

  1. Go back to the original invoice. In Discounts or credits available, choose the credit note and click Apply.

The credit note’s credit to apply on the original invoice (French interface)

  1. The original invoice becomes Paid, with the credit note in its payments and 0.00 left to pay. It no longer counts in the customer’s unpaid invoices.

The original invoice settled by the credit note (French interface)

  1. Still on the original invoice, click Clone. Dolibarr offers the same customer and today’s date.

The cloning window (French interface)

  1. The clone is a draft with the same lines: correct what was wrong, then validate. It gets a new number. In the test, invoice FA2611-0009 is settled by credit note AV2611-0001, and the corrected invoice is FA2611-0010.

Without steps 3 and 4, the validated credit note stays separate: the original invoice keeps showing as unpaid.

If the invoice was already paid, the credit note is created the same way; that case (refund or credit for later) was not tested here.

4. What about the replacement invoice?

Dolibarr has a “Replacement invoice” type, but it disables it itself for French companies (and Greek ones). The code explains why: this type creates gaps in the numbering, which is a problem in a tax audit (hidden setting INVOICE_DISABLE_REPLACEMENT, forced to 1 in France since at least version 21). In our tests with a French company in 23.0.4 and 24.0.2, the option does not appear in the creation form. For a company in another country the type exists, but we did not test it: the credit note remains the path tested here.

5. Delete rather than correct?

In 24.0.2, Delete is only offered for a validated invoice that has the last number, and that has been neither sent by email nor paid. For any other invoice Dolibarr refuses, because it would leave a gap in the numbering. An invoice that has already gone to the customer is therefore corrected with the credit note.

How this was checked

On 4 November 2026, on fresh installations of Dolibarr 24.0.2, 23.0.4 and 22.0.5 (official Docker images, MariaDB 11.4, French company, French interface), driven by a browser like a user. For each case, a new invoice was validated then: left as it was, its PDF downloaded, its PDF opened in preview, sent by email (real sending to a test mail server), or partly paid; all of it without then with the Immutable Logs module. The status was read back in the database after each click on Modify. The credit note, credit, cloning and new invoice path was played in full in 24.0.2 and in 23.0.4, with the same results. The rules (sending, printing, payment, accounting, replacement invoice in France) were read in the Dolibarr code. Not tested: transfer to accounting, the credit note on an invoice already paid, situation invoices, the TakePOS point of sale, and companies outside France.

See also

Frequently asked questions

Why can't I set my invoice back to draft in Dolibarr?

In 23 and 24, the Modify button refuses an invoice already sent by email from Dolibarr, and it disappears as soon as a payment is entered. In 23.0.4 with the Immutable Logs module, a simple preview or download of the PDF is also enough to block it. It is not a bug: it is linked to certification and immutable logs. The correction then goes through a credit note, then a new invoice.

How do I correct a validated invoice that was already sent in Dolibarr?

On the invoice, Create credit note, tick “Create Credit Note with lines from the origin invoice”, validate the credit note, click Mark as credit available, then apply that credit on the original invoice (it becomes Paid, nothing left to pay). Then Clone the original invoice, correct the draft and validate it: it gets a new number.

Can I make a replacement invoice in Dolibarr?

Not for a French (or Greek) company: Dolibarr disables that invoice type itself in those countries, because it creates gaps in the numbering. In our tests with a French company in 23.0.4 and 24.0.2, the option does not appear. For companies in other countries the type exists, but we did not test it.

Dolibarrvalidated invoiceback to draftmodify an invoicecredit notereplacement invoiceimmutable logsversion 23

Did this guide help you?

A question about this guide, or a step that does not go as expected on your side? Write to support@dolix.fr.