Skip to content

D40 · Document numbers read type, division, entity and day

Accepted · 2026-10-14 · zuki · Part of OQ6 · Partly superseded by D53 (claim codes)

Decision: Contracts, BASTK and surat hutang are numbered TYPE/DIVISION/ENTITY/YYYYMMDD-NNN: for example BAST/VM/TOP/20261001-001, Contract/DM/TOP/20261001-001 and Contract/BD/TOP/20261001-001. The division is the creator's, from a divisions table per organization that starts with VM (vehicle management), DM (driver management) and BD (business development) and grows when the business needs it. The entity is the legal entity's code (TOP, MOP). The date is the pool's date. The three-digit sequence restarts each day, for each type, division and entity.

Why: The higher-ups' numbering convention (#144), which is the convention of TOP and MOP, the two companies that run Opleet first. Another organization may have its own convention, and Opleet does not force this one on it. It replaces the yearly restart for contracts and the monthly restart for BASTK (R-NUM-05, R-NUM-06).

Consequences:

  • The format is TOP and MOP's convention, so it is the default for their organization only. A number is unique within its organization (R-TEN-04), and two organizations may hold the same one. A configurable format for other organizations is not built now; it would be a decision of its own.
  • Only documents Opleet issues follow it. Insurance claim codes are untouched until the insurance flow is understood, so OQ6 stays open for them.
  • A member belongs to a division, and creating a numbered document without one is refused.
  • There is no trailing slash. Stored v1 numbers migrate as they are; the new format applies to new documents.
  • Built in M4 with the contracts and BASTK functions. The divisions table and the member's division arrive with it.