Life ConnectLife Connect
Wiki index
Architecture
Services
Concepts
Runbooks
Infra
Swagger Docs
GitHub
Wiki index
Architecture
Services
Concepts
Runbooks
Infra
Swagger Docs
GitHub
  • Cross-cutting concepts

    • EventBridge fanout
    • Atlas Triggers
    • ECS Fargate deploy lifecycle
    • Keycloak hosting
    • Cloudflare Pages auto-deploy
    • Bitbucket Pipelines (legacy)
    • Terraform-managed envs (legacy)
  • Accounting model

    • Accounting model
    • Events catalog
    • Accounting journals
    • Plan of accounts (PCG)
    • Auxiliary accounts
    • FEC fields (Fichier des Écritures Comptables)
    • pieceReference numbering
    • Tenant matrix (payable / receivable)
    • Owner matrix (payable / receivable)
    • Take-over UI display rules
Last updated 2026-05-04

pieceReference numbering

AI-generated content

This document was generated by an AI assistant from the 'Event Matrix Accounting' Google Sheet. Verify accuracy before relying on the details.

The pieceReference is FEC field #9 — the document reference of an accounting entry. ADB uses three chrono families plus an "external" carrier for user-provided references.

At a glance

EVENT_KEYTypeNameValue rangeComment
CALL_FOR_RENT (and CALL_FOR_RENTAL_CHARGES, CALL_FOR_DEPOSIT)chronocall_forCF00000001 to CF99999999Shared by the three call_for events when possible
CFR_CHARGES_HOUSEHOLD_WASTEchronocall_forsame CF… seriesShares the call_for chrono
(any external doc)external——User-provided reference (e.g. supplier invoice number)
(invoice events)chronoinvoiceINV00000001 to INV99999999Outgoing/incoming invoice family
(internal events)chronointernalITN00000001 to ITN99999999Internal entries with no externally meaningful ref

Per-event chronos

The sheet also documents shorter prefixes per event (e.g. RR_<chrono> for recurring rent, OPI_<chrono> for outgoing owner payments). Those are the strings used in the user-facing description column, not the FEC Doc ref. Each event's "At a glance" table lists its specific chrono.

Where chronos live in code

  • The accounting_sequence MongoDB collection (in adb-accounting) holds the per-prefix counter.
  • Allocation goes through SerialNumberService / ObjectIdController (see the service fact sheet).
  • The user can override the chrono for incoming-payment events (the sheet shows if not given by endUser, automatic attribution).

Open questions

  • The source has four #REF! cells in this tab (rows for \#REF\! event keys). The CF…, INV… and ITN… chronos are still meaningful, but the events that those #REF! cells were meant to point at are unknown. If you find a clear mapping in code, file a PR to update this page and the original sheet.
  • The source mentions an external chrono type with no name/value pair. That's the path used when the user enters a supplier invoice number directly — it bypasses the chrono service. Worth documenting whether the FEC export keeps that user value verbatim or applies normalisation.
Edit this page
Last Updated:
Contributors: Yevhenii Khudolii
Prev
FEC fields (Fichier des Écritures Comptables)
Next
Tenant matrix (payable / receivable)