Skip to content

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 once POSTED).
  • 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 transitioning FiscalPeriod statuses safely.
  • FinancialStatementsScreen: Real-time trial balance, income statement, and balance sheet views aggregated directly from AccountPeriodBalance and JournalLine records.
General Ledger workbench showing Posted & Draft Journals grid with JE-2026-000010 selected, locked POSTED Journal Voucher Detail form, and Balanced Voucher Debit & Credit Lines footer

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:

  1. Control-Account Isolation: When source === 'MANUAL', the pre-save hook queries each line’s LedgerAccount; targeting a control account (allowManualPosting === false or isControlAccount === true) raises an explicit validation error directing postings through authorized subledger interfaces.
  2. Staggered Period Close & Subledger Cutoff: Posting into a SOFT_CLOSED fiscal period rejects operational subledgers while permitting authorized ADJUSTMENT and YEAR_END closing entries; CLOSED periods reject all new vouchers.
  3. Atomic Period Roll-Forward (closePeriod): Aggregates all POSTED JournalLine debits and credits grouped by (accountingBookId, accountId), persists immutable AccountPeriodBalance snapshots, and seals the period against retroactive changes.