# RFQ/EOI — Numbering

Goal: Flexible, per-org numbering with preview at creation and assignment on publish.

Format Tokens
- TYPE: RFQ or EOI
- YYYY: 4-digit year from publish date
- YY: 2-digit year
- SEQn: zero-padded sequence with n digits (e.g., SEQ4 → 0001)

Default Pattern
- TYPE-YYYY-SEQ4, for example RFQ-2025-0007

Rules
- Sequence keys are (org_id, type, year)
- rfq_number reserved only on publish to avoid gaps during drafts
- Preview shows the next number; final may change until publish occurs
- Per-RFQ override: store chosen numbering_format in rfq_headers

Sequences Table
- numbering_sequences: org_id, type, year, next_seq
- On publish: increment atomically and format identifier

Examples
- EOI-2025-0042
- RFQ-2024-1033
- Custom example per org: ORGCODE-TYPE-YY-SEQ5

