hitaji-erp-api/src/accounting). For task-oriented end-user docs, see the
User Guide.
Contents
- Architecture — module map and request → posting flow
- Posting Engine — intent → outbox → ledger, idempotency, routing, posting profiles
- Accounting Bridge — how HR, payroll, and SACCO post into the ledger
- Data Model — entities and relationships
- GL Invariants — double-entry guarantees, account & period guards
- Multi-Tenancy — tenant/business isolation and per-business accounting books
- Reports Internals — how financial reports are computed and snapshotted
- Number Series — document-sequence allocation internals
- API Reference — endpoints grouped by controller, with permission slugs
The accounting service is the system of record for every business’s books. Other modules (HR, payroll, SACCO, sales) never write ledger rows directly — they emit posting intents through the Accounting Bridge, which the Posting Engine turns into balanced, idempotent ledger entries scoped to the originating business’s accounting book.