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
Compliance Architecture
Principles
- Compliance is independent of UI fashion and optional modules — controls remain even if a feature UI changes.
- Every business action that matters is auditable (
audit_logs). - Financial postings only through Posting Engine (ADR-010).
- Regulated connectors (e.g. tax authority / سامانه مؤدیان) live behind Accounting/compliance adapters — never scatter across modules.
Audit Log
Core audit_logs captures tenant_id, actor, action, resource, metadata, IP, user agent.
Modules should emit domain events and/or write their own audit trails for module-owned resources; never skip tenant context.
Accounting Compliance (future)
- Double-entry integrity
- Cost centers / projects as dimensions
- Tax and e-invoicing providers via provider registry
- No direct
JournalEntrycreation outside Posting Engine
Data Isolation
Cross-tenant reads for “support” require platform_admin controls and must be logged.