Skip to main content

Numbering sequences

What this page is — the sequences that give a document its number at the moment it is finalized: the pattern, its tokens, when the counter resets, and what can and cannot change afterwards.

What it is for — so every issued document carries a unique, gap-free reference that says what it is and when it was issued.

The problem it solves — hand-typed references collide, skip and mean nothing, and a document sealed without a number stays that way.

Route: /org/settings?tab=papers → Numbering · Permissions: Manage org letterheads, seals, watermarks and numbering sequences. for organisation sequences; Manage the project's numbering-sequence overrides (requires open numbering lock). for project sequences while the numbering lock is open.


1. What it is​

A sequence is a counter with a format. It does nothing on its own: a document type names it on its Behavior tab, and the number is allocated when a document of that type is finalized.

MomentNumber
CreatedNone — the list shows —
Submitted, approvedNone
FinalizedAllocated and sealed into the PDF
Numbers are never allocated retrospectively

A document finalized while its type had no sequence stays unnumbered forever. Bind sequences before the first real document.

Gap-free is literal: the counter is locked while a number is allocated, and the increment commits only if the finalize commits. A finalize that fails releases its number.


2. Why you would use it​

  • A number people can quote. "AGR/2026-27/0042" in an email, on an invoice, in a dispute.
  • Auditors get a complete series. No gaps means no unexplained missing documents.
  • The format encodes meaning. Year, month and type prefix are in the number itself.
  • Resets match how you file. Invoices restart every fiscal year; certificates never do.

3. Step by step​

  1. + Sequence.
  2. Set Prefix, Suffix and Pattern.
  3. Pick a Reset policy.
  4. Choose Applies to — the organisation, or a project whose numbering lock is open.
  5. Save.
  6. In the Type Designer, bind the sequence on each type's Behavior tab.


4. Field reference​

Pattern tokens​

TokenBecomesExample
{PREFIX}The prefix, verbatim — may be emptyAGR
{SUFFIX}The suffix, verbatim — may be empty-IN
{FY}The Indian fiscal year, April to March2026-27
{YYYY}Four-digit calendar year2026
{YY}Two-digit year26
{MM}Two-digit month09
{SEQ}The counter, unpadded42
{SEQ:0000}The counter, zero-padded to the number of zeros0042

Default pattern: {PREFIX}-{FY}-{SEQ:0000}.

RuleDetail
{FY} boundary31 March 2026 → 2025-26; 1 April 2026 → 2026-27
Padding never truncatesCounter 12345 with {SEQ:0000} → 12345
A counter token is mandatorypattern "X" must contain a {SEQ} or {SEQ:0000} token
Unknown tokens are refusedinvalid token {BANANA} in pattern "…". Allowed tokens are … — an unrecognised token would otherwise be stamped literally into permanent numbers

The designer's in-product hint shows AGR/{{YYYY}}/####. That is not the token syntax — use AGR/{YYYY}/{SEQ:0000}.

Reset policy​

PolicyCounter restarts at 1
Never resetNever
Each fiscal year1 April
Each calendar year1 January
MonthlyThe first of each month

Refusal: invalid reset_policy "x": must be one of never, fiscal_year, calendar_year, monthly.

Editing and deleting​

Can changeCannot change
Prefix, suffix, pattern, reset policyApplies to — organisation or project. Create a new sequence instead

Delete works only on a sequence that has never allocated a number. Otherwise: sequence has already allocated numbers and cannot be deleted — the series must stay auditable.

Changing a pattern changes future numbers only. Existing numbers are sealed.


5. Designing a numbering scheme​

The pattern is permanent on every number it produces, so it is worth ten minutes before the first finalize.

DecisionRecommendedWhy
One sequence per type, or sharedOne per type where people quote the number; shared only where uniqueness is all you need"INV-00118" and "AGR-00119" from one counter look like gaps to an auditor reading either series
Put the type in the prefixYes — INV, AGR, CERTA number should say what it is
Resetting sequencesAlways include a period tokenA fiscal-year reset with no {FY} produces INV-0001 again every April — two different invoices, one number
Padding widthSize for your busiest period{SEQ:0000} holds 9,999 per period; the 10,000th becomes 10000, never truncated, but the column stops lining up
Monthly resetsInclude {MM} and a yearWithout both, January numbers repeat every year
SubsidiariesA project sequence, with the project's numbering lock openIts documents carry its own prefix without touching the group series

Patterns that work​

DocumentsPatternReset
Tax invoicesINV/{FY}/{SEQ:00000}Each fiscal year
AgreementsAGR/{YYYY}/{SEQ:0000}Each calendar year
Certificates checked by third partiesCERT-{SEQ:000000}Never
Monthly statementsSTM-{YYYY}{MM}-{SEQ:000}Monthly

Patterns that cause trouble​

PatternProblem
INV-{SEQ:0000} with a fiscal-year resetNumbers repeat every April
{SEQ} alone, shared across typesUnreadable, and every type shows gaps
A pattern changed after go-liveTwo formats in one series — both permanent

6. Worked example​

A finance controller sets up tax invoice numbering.

FieldValue
PrefixINV
Pattern{PREFIX}/{FY}/{SEQ:00000}
Reset policyEach fiscal year
Applies toOrganisation

They bind it on the Tax Invoice type.

Finalized onNumber
30 March 2026INV/2025-26/00411
31 March 2026INV/2025-26/00412
1 April 2026INV/2026-27/00001

In May they try to delete an old test sequence and are refused — it allocated three numbers in UAT. They leave it, and remove it from the types that referenced it instead.


7. The admin contract​

Must be trueWhereWhat breaks without it
Each numbered type binds a sequenceBehavior tabDocuments seal unnumbered
The role holds Manage org letterheads, seals, watermarks and numbering sequences.Role editorOrganisation sequences cannot be managed
The numbering lock is open, for project sequencesOverride locksProject members cannot create them
The pattern is final before go-liveThis screenEarly documents carry a format you later regret

8. Downstream​

When you…Then
Bind a sequence to a typeThe next finalize of that type allocates from it
Edit the patternFuture numbers use it; sealed ones do not change
Relock numbering for a projectIts types keep using their bound sequences

9. Don't confuse this with…​

Verification codesRandom, for public authenticity checks. A number is your own reference
Bates prefixStamps a reference on every page, set on the type
The document titleFree text the author chooses

10. Troubleshooting​

SymptomCause
Documents finalize with no numberThe type binds no sequence
Older documents are unnumberedNumbering is never retrospective
{FY} shows the wrong yearIt is the Indian April–March year, not your company's configured fiscal year
The counter did not resetResets happen on the boundary the policy names, not on demand
A sequence cannot be deletedIt has allocated numbers
A project cannot create a sequenceThe numbering lock is closed