Version <v5.11.33>
Environment self-hosted
Describe the bug
Settings → Generated Numbers → Settings → Shared Invoice/Credit Counter set to on
Creating an invoice and saving it in status Draft doesn’t bump the invoice counter. Invoice number is shown as “Live preview #…” in the preview. Only when invoice is sent, a real invoice number gets used and counter is incremented.
Creating a Credit note shared invoice/credit counter gets bumped the moment the Credit note gets saved as draft. If I then do not send the credit note, my number space becomes noncontinuous.
Expected Behavior
Credit note numbers should be handled the same as invoice numbers and only be applied when sending, not already when saving as draft.
Additional context
There is also a setting Settings → Generated Numbers → Settings → Shared Invoice/Quote Counter. I havent tried, but I suspect Quote numbering behaves likewise erroneous as Credit numbering.