[gl]

General Ledger

Generic double-entry General Ledger: hierarchical chart of accounts mapped to statement categories, classic T-account journal entries that post to the declared accounting register gl.ledger, whose platform-maintained monthly totals back the trial balance, balance sheet and income statement, and accounting periods with close.

Try it in your workspacefree workspace · you confirm before anything installs

v0.11.5 · 70 installs · free

What it does

gl is a generic, standards-aligned General Ledger. You define a chart of accounts mapped to statement categories, post balanced journal entries, and the platform's ledger-registry trait automatically maintains a movement journal and a period balance register — no hand-written balance arithmetic, triggers, or stored procedures. Financial statements read straight off the register.

It is a regular installable module: use it as-is, fork it, or replace it with your own ledger. Nothing in the platform hard-codes gl.

GL posting pipeline


Highlights

  • Hierarchical chart of accounts — self-referencing account tree, mapped to statement (Balance Sheet / Income Statement), section (Asset/Liability/Equity/Income/Expense) and normal_balance. Control accounts (AR/AP/Inventory) flag their owning module.
  • Classic double-entry journals — T-account lines with debit/credit, enforced balanced before posting, auto-numbered (JE-2026-00001, yearly reset).
  • Automatic posting — a balanced entry posts to the declared accounting register gl.ledger: dated rows in posting, and debit/credit turnover per account and month in ledger_totals, which the platform maintains. An opening balance is the turnover before the period — there is nothing to carry forward, and balances at go-live arrive as an ordinary opening entry.
  • Period & year close — closing a period freezes it; year-end generates a balanced draft closing entry that lands the net result in Retained Earnings.
  • VAT register — a second register on each entry tracks VAT by tax period independently of the accounting period, so closing the tax period freezes only VAT fields.
  • Financial statements — Trial Balance, Balance Sheet, Income Statement, Account Ledger, plus the Income Statement matrix.

The Income Statement matrix

The headline report. Accounts × periods, with the net per cell computed as credit − debit, so income accounts read positive and expense accounts negative. A plain signed-sum rollup turns the account tree into subtotals (Gross Profit, Operating Expenses) and the grand total into Net Income — with no special sign logic anywhere in the engine.

On top of the figures, computed rows add the ratios a real income statement needs — Gross Margin %, OpEx % of Revenue — each defined as a formula over other rows and evaluated per period (read-only).

Income Statement matrix

Features: tree subtotals · accounting-style negatives (parentheses + red) · hide-empty periods · From/To period range · drill-through from any cell to its source movements · computed ratio rows.

A computed row is pure view config — { "label": "Gross Margin %", "refs": { "gp": "…", "rev": "…" }, "formula": "[gp] / [rev] * 100" }.


Data model

GL data model

Starter data

Installs with 5 account categories, 19 accounts and 4 journals. Demo data adds twelve accounting periods and twelve VAT periods for the current year.

How it fits

The ledger is the hub other modules post into, and each connection is its own small module.

  • fin-gl turns finalized invoices and vendor bills from fin into balanced draft journal entries.
  • wms-gl posts goods receipts and goods issues from wms to inventory, GR/IR and cost of goods sold.
  • gl-budget adds a budget-versus-actual matrix on top of the income statement.

erp-pack installs the ledger with all of them.

Used by

Published modules that build on this one.

General Ledger
Try it
/ explore more

Browse the full
module catalog.

Every module is metadata — install it in one click, then change anything.