Suite 1.1 · Accounting Hub & General Ledger
Suite 1.1 (PE - Financials - General Ledger) serves as the immutable accounting core for the entire enterprise financials architecture. It defines organizational accounting books, hierarchical accounts, fiscal calendars, double-entry journal headers and lines, and aggregated period balances consumed across downstream subledgers.
1. Domain Model & Core Entities
| Entity | Role in Ledger Core | Key Traits & Structural Invariants |
|---|---|---|
AccountingBook |
Primary statutory, IFRS, or management reporting book | Base functional currency, calendar linkage, book type classification |
LedgerAccount |
Chart of accounts node with natural debit/credit orientation | Control-account flag (allowManualPosting = false shields AP/AR/Cash trade accounts) |
FiscalPeriod |
Accounting calendar bucket controlling open/close states | Subledger channel lock map (OPEN, SOFT_CLOSED, CLOSED) |
JournalEntry |
Master financial voucher header with sequential numbering | SequentialNumbering (JE-{YYYY}-{000000}), BalancedTransaction, PeriodLocked |
JournalLine |
Individual debit or credit posting against LedgerAccount |
Non-negative debit/credit enforcement, cost center dimensions |
AccountPeriodBalance |
Pre-aggregated beginning, turnover, and ending balances | Rolled forward atomically when FiscalPeriod transitions cleanly |
2. Composite Runtime Workbenches
Suite 1.1 bundles four integrated screens designed for daily voucher entry, hierarchy stewardship, period close orchestration, and executive reporting:
GeneralLedgerScreen: Synchronized split workspace pairing a filterable Posted & Draft Journals master grid with Journal Voucher Detail header form and Voucher Debit & Credit Lines summary checker (Total Balanced ✓, locked read-only fields oncePOSTED).ChartOfAccountsScreen: Hierarchical ledger account tree for maintaining account numbers (10100,20100,60200), account categories, and manual-posting restrictions.PeriodCloseWorkspace: Multi-stage close console triggering period balance roll-forward (closePeriod), verifying subledger cutoff readiness, and transitioningFiscalPeriodstatuses safely.FinancialStatementsScreen: Real-time trial balance, income statement, and balance sheet views aggregated directly fromAccountPeriodBalanceandJournalLinerecords.

GeneralLedgerScreen at runtime: selecting POSTED voucher JE-2026-000010 populates header metadata (Locked state) and balanced debit/credit distribution lines from live storage.
3. Cross-Suite Interfaces & Triggers
| Interface / Trigger | Direction & Modes | Responsibility |
|---|---|---|
JournalEntry.Post |
INBOUND · API, Event, Message (/api/interfaces/gl/journal-entry/post) |
Accepts external and subledger journal headers with nested lines[] (lineNumber, accountId, debit, credit, description, costCenter) |
JournalEntry.Post.CreateOne |
Trigger -> JournalEntry.CreateOne |
Maps incoming posting payload attributes directly into persisted headers and lines inside one atomic database transaction |
GeneralLedger.Get |
OUTBOUND · API, Event |
Exposes read-only ledger balances, voucher lookups, and accounting periods to external reporting and downstream services |
4. Deterministic Accounting & Validation Controls
Every posting and period close executes deterministic TypeScript guards compiled directly into Perlite action points:
- Control-Account Isolation: When
source === 'MANUAL', the pre-save hook queries each line’sLedgerAccount; targeting a control account (allowManualPosting === falseorisControlAccount === true) raises an explicit validation error directing postings through authorized subledger interfaces. - Staggered Period Close & Subledger Cutoff: Posting into a
SOFT_CLOSEDfiscal period rejects operational subledgers while permitting authorizedADJUSTMENTandYEAR_ENDclosing entries;CLOSEDperiods reject all new vouchers. - Atomic Period Roll-Forward (
closePeriod): Aggregates allPOSTEDJournalLinedebits and credits grouped by(accountingBookId, accountId), persists immutableAccountPeriodBalancesnapshots, and seals the period against retroactive changes.