Invoice numbering
Invoice numbers are generated automatically from the pattern you set here. Decide the pattern before you issue your first invoice: a number is assigned only when an invoice is issued and the sequence then runs on unbroken, so a later change shows up as a change of format in the middle of the sequence.
A draft invoice has no number yet. It gets one only when you issue it. That is what stops a gap appearing in the sequence when a draft is deleted or never issued.
Open the settings
- In the left menu choose Settings.
- Open Invoice Settings. The page contains the Invoice Numbering section.

The page can be edited by an administrator or an accountant.
Build the pattern
The Number Pattern field holds the shape of the number. The default is {YYYY}-{####},
which produces 2026-00001.
You can use:
| Token | Meaning | Example |
|---|---|---|
{YYYY} or {year} | full year | 2026 |
{YY} | short year | 26 |
{MM} or {month} | month, zero-padded | 02 |
{number} or {####} | sequential number | 00001 |
Everything else in the pattern is printed literally, for example a hyphen or a slash.
The hint under the field lists only {year}, {month} and {number}, but the shorter
{YYYY}, {YY}, {MM} and {####} forms used by the default value work as well.
Set the remaining fields
- Prefix is text placed before the generated number, for example
RAC-. Leave it empty if you do not want one. - Suffix is text placed after the generated number.
- Number Padding is the minimum width of the sequential number. At 5, the first number
prints as
00001. - The Reset Counter dropdown decides when the sequence returns to the start: Never, Yearly (Jan 1) or Monthly (1st of month). If you choose yearly or monthly, the pattern must also contain the year or the month. Otherwise, after a reset, the sequence offers numbers that are already used and issuing an invoice fails.
- Start Number is the number the sequence starts from every new year or month (normally one). If you moved to VegaERP part-way through the year, do not enter the number you continue from here, because every following year would start from it too. Use continuing the numbering.
The year and month in the number come from the invoice’s issue date, not from the day you issue it. A draft dated 29 December that you issue on 3 January therefore gets last year’s number. Once the first invoice of the new year has been issued, an invoice with last year’s issue date can no longer be issued: the app refuses it. Issue it with today’s date and enter the December date as the service date. The VAT liability follows the service date, so the invoice still falls in December’s VAT return.
Issue dates in a series move forward with the numbers. An invoice whose issue date is earlier than the issue date of the last invoice in the series cannot be issued, because a higher number would carry an earlier date. An issue date before today is allowed if it is not earlier than that date.
Check and save
The Preview section shows what the next number will look like, with the current sequence number below it. When the preview matches what you want, click Save.
Continuing the numbering from your previous program
If you moved to VegaERP part-way through the year, your first invoice here should continue the
sequence from your previous program. If the last invoice you issued there was 2026-0137, the
next one should be 2026-0138.
- Click Reset Counter.
- Choose Continue from a number I enter.
- In The next invoice should get number, enter the number that follows the last invoice from
your previous program, for example
138. - Click Reset.
Start Number stays as it is, so the sequence starts at 1 again next year.
Resetting the counter
The Reset Counter button opens a choice. Restart at the start number returns the sequence to the starting number. Use it only if you got the first setup wrong and have not issued any invoice yet.
A reset cannot be undone. Invoices already issued keep their numbers. If any number in the sequence is already used, issuing the next invoice fails: the app refuses it and reports that an invoice with that number already exists. You then move the sequence forward with the Continue from a number I enter option.
Common issues
The next number is not what I expect. Check the preview: the prefix and suffix wrap around
the generated part, so RAC- with the pattern {YYYY}-{####} gives RAC-2026-00001.
An invoice will not issue because the number already exists. The sequence points at a number that is already used. This happens after a counter reset, or when Reset Counter is set to yearly or monthly while the pattern contains no year or month. Fix the pattern, or continue the sequence from the first unused number with the Continue from a number I enter option.
An invoice will not issue because its issue date falls in a closed period. The issue date is in last year (or a past month), and the sequence has already moved on to a later period. Issue the invoice with today’s date and enter the earlier date as the service date.
An invoice will not issue because its issue date is earlier than the last invoice’s. The series already has an invoice with a later issue date. The message gives that date. Issue the invoice with that date or a later one, and enter the earlier date as the service date.
Two issued invoices cannot carry the same number. The app prevents it at issue time, so the error always surfaces there rather than later in your books.