Adds accounting-service PATCH/archive, fiscal helpers, COA templates and setup status, plus SuperApp Accounting UI (DS, scoreboard, masters, vouchers, ledger, ops modules) with session refresh and HTTPS public API URLs. Co-authored-by: Cursor <cursoragent@cursor.com>
1.2 KiB
1.2 KiB
ADR-010: Posting Engine Ownership for Accounting Entries
| Field | Value |
|---|---|
| Status | Accepted |
| Date | 2026-07-22 |
| Deciders | Platform Architecture |
| Supersedes | — |
| Superseded by | — |
Context
Future Accounting must prevent inconsistent double-entry writes from multiple modules creating journal lines ad hoc.
Decision
No service or UI may create JournalEntry / journal lines directly. All financial postings go through a dedicated Posting Engine owned by the Accounting module. Other modules emit posting intents/events; Accounting validates and posts.
Consequences
Positive
- Single source of truth for ledger integrity
- Auditable, compliance-friendly postings
Negative
- Modules must wait for Accounting contracts before financial write-paths
Alternatives Considered
- Each module writes its own journal tables
- Shared journal library embedded in every service