Number Sequences and Issued Invoices
Quotes, orders, invoices and tickets get their numbers from Cubrel automatically, like INV-2026-0042. Numbers are unique, never reused and never edited by hand. This article covers when a record gets its number, how to set the format, and what happens to an invoice once it's issued.
When a record gets its number
| Module | Numbered | Field |
|---|---|---|
| Quotes | When the quote is created | Quote Number |
| Orders | When the order is created | Order Number |
| Invoices | When the invoice leaves Draft (for example set to Sent) | Invoice Number |
| Cases and other ticket modules | When the ticket is created | Case Number, or Number |
| Custom modules with Numbered Records | When the record is created | Number |
A draft invoice has no number yet. Deleting a draft never leaves a gap, because drafts never take a number.
The number field is read-only everywhere: on the record page, in bulk updates, in imports, in workflows, in conversion rules and through the REST API. A request that sends a number through the API is refused.
Setting the format
Admins go to Workspace > Modules & Fields > Number Sequences. Each numbered module has its own card, collapsed by default, with a live preview of the next number issued.
| Setting | What it does | Example |
|---|---|---|
| Prefix | Text at the start of every number | INV- |
| Include year | Adds the year the number is issued | on |
| Year format | Full or short year | 2026 or 26 |
| Separator after the year | Text between the year and the counter | - |
| Restart at 1 every year | Starts the counter again with the first number of each year | on |
| Digits | Minimum length of the counter, filled with leading zeros | 4 gives 0042 |
| Next number | The counter of the next number issued | 458 |
Digits is a minimum, not a limit: after 9999 comes 10000. The year turns at midnight in your instance's timezone, set under Workspace > System Settings > Region & Language.
Continuing a sequence from another tool
Switching from another tool? Set Next number to continue where you left off, for example 458 for 2026-0458. The next number can only be raised, never lowered, and it can't be a number a record already holds, so no number is ever issued twice.
Changing the format later
Changing the format only affects numbers issued from now on. Existing numbers stay exactly as they are, and the card tells you what new numbers will look like before you save. If a number from an earlier format is already taken, Cubrel skips to the next free one. Every change to a sequence is written to the audit trail, with who changed it, when, and the old and new next number.
Issued invoices are locked
Once an invoice has its number, it's issued, and Cubrel locks it so the invoice in Cubrel always matches the one your customer received.
On an issued invoice, only these can still change:
- Status (except back to Draft)
- Paid on, payment reference and payment method
- Reminder level
- Notes
- Owner
- Calculated totals
- Custom fields an admin flagged Editable After Issue
Everything else is read-only, the line items can't be added, edited, removed or reordered, and the invoice can't be deleted. The lock applies everywhere: the record page, bulk updates and deletes, imports, workflows and the API.
Editable After Issue
Some custom fields are internal and may still change after sending, like a follow-up note. Admins open the field in Workspace > Modules Manager > Invoices > Fields and turn on Editable After Issue. The toggle only appears on fields the lock would otherwise freeze.
Correcting a mistake
An issued invoice can't go back to draft. To correct one, set it to Void and create a new invoice, which gets the next number. The voided invoice keeps its number, so your sequence stays complete.
Numbering in custom modules
In the Module Builder, turn on Numbered Records under the advanced settings before deploying. The module gets a read-only Number field and appears on the Number Sequences page. Records of custom modules are numbered on create and aren't locked.
Out of scope
Only invoices lock once issued; quotes, orders and custom modules don't. Credit notes, e-invoices and bookkeeping aren't part of Cubrel; see What Cubrel Does and Doesn't Do.
In short
| Question | Answer |
|---|---|
| Where do I set the format? | Workspace > Modules & Fields > Number Sequences |
| When does a quote get its number? | When it's created |
| When does an invoice get its number? | When it leaves Draft |
| Can I edit a number? | No, numbers are always assigned automatically |
| Can I continue my old sequence? | Yes, set the next number |
| Can the next number go down? | No, only up, so no number is issued twice |
| Can I delete an issued invoice? | No, set it to Void and create a new one |
| Can an internal field stay editable after issue? | Yes, turn on Editable After Issue for it |