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.
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.
Highlights
- Hierarchical chart of accounts — self-referencing account tree, mapped to
statement(Balance Sheet / Income Statement),section(Asset/Liability/Equity/Income/Expense) andnormal_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 inposting, and debit/credit turnover per account and month inledger_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).
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
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.
- ERP SuitepackSales, finance, warehouse, HR — installed and wired together as a starter ERP.
- Finance–General Ledger IntegrationBridges Finance and the General Ledger
- GL BudgetingBudget-vs-Actual for the General Ledger
- Warehouse–General Ledger IntegrationBridges Warehouse Management and the General Ledger
What's inside
The module's own entities, views, reports, print templates and actions.
Entities 11
account_categoryaccountaccounting_periodjournaljournal_entryjournal_entry_linepostingledger_totalstax_periodtax_balancetax_movementViews 8
Reports 5
Actions 4
Roles
Shipped with the module and assignable the moment it installs.
- General Ledger Administrator
gl.admin - General Ledger Accountant (create and post entries)
gl.accountant - General Ledger Viewer (read-only)
gl.viewer
Settings
Configurable per workspace, under Admin.
| Setting | Type | Default |
|---|---|---|
fiscal_year_startFiscal year start date | date | 2026-01-01 |
default_currencyDefault ledger currency (ISO code) | dropdown | USD |
default_journal_codeDefault journal code for new entries | text | GEN |
retained_earnings_account_codeAccount code that absorbs year-end net result | text | 3900 |
journal_entry_prefixPrefix for journal entry numbers | text | JE- |
0.11.4Dec 1, 2026
General ledger dashboard
For users
The General Ledger folder now opens with a dashboard: posted and draft journal entries, open accounting periods, active accounts, posted debit by journal and accounts by section. Edit it to make it your own.
For developers
ui/dashboards.json: the default dashboard (six tiles on the module's root folder).translations/: dropdown option labels (statuses, types, priorities) in de, so charts and grids show them in the user's language.version→0.11.4.
0.11.3Nov 4, 2026
Action descriptions translated
For users
The descriptions of the module's actions are now translated into German, so an action button's tooltip no longer shows in English. Close Period no longer claims to carry balances forward: it closes the period to writes, and an opening balance is the turnover before the period.
For developers
translations/de-DE.json:descfor 4 actions (#1548).ui/actions.json: theclose_perioddescription matches what the action does since 0.11.0 (nothing is carried forward).version→0.11.3.
0.11.1Oct 8, 2026
The ledger has a name
Install requirement: metadata 1.17.2 or newer, which gives a register a display name.
For users
- The query builder offers the general ledger as "General Ledger" (German "Hauptbuch"), not by its code
gl.ledger. The VAT register is named "VAT" the same way.
For developers
registers.jsongivesledgerandvatalabel, translated under the newregisterssection oftranslations/de-DE.json.
0.11.0Oct 5, 2026
The ledger is a declared accounting register
Install requirement: platform 1.28.0 or newer (admin 1.21.0, metadata 1.17.0), which runs module upgrade migrations, admits an accounting register without analytic slots and adds the register report dataset.
Upgrading a ledger with data. The upgrade dates every existing posting by its journal entry. Opening balances typed into the balance table become one posted entry per period,
OB-<period>, dated the period's first day in the General Journal. A closed period is reopened for it and closed again. The upgrade refuses opening balances that do not balance; correct them on 0.10 first. Only an account's earliest balance row counts as typed, since every later opening was carried forward by closing a period. An opening edited by hand after that is not carried over.
For users
- An account's opening balance in a period is now everything posted to it before the period. Closing a period only closes it — nothing is carried into the next one any more, so reopening and closing again changes nothing.
- Balances at go-live are entered as an ordinary opening journal entry, posted like any other, instead of being typed into the balance table. The upgrade turns balances already typed there into such an entry, so they now show as that period's turnover rather than its opening.
- Each report is titled by its name, such as "Balance Sheet", with what it shows underneath, instead of one long sentence.
- The Trial Balance and Balance Sheet show each account's balance on the side it falls on. The Account Ledger shows each posting's date.
- The three analytics columns on journal lines (cost centre, project, counterparty) are gone. They held bare ids nothing filled; analytics per account are a later feature.
For developers
- New
registers.jsonentryledger:kind: "accounting", chartaccount, journalposting,journalDate: "posted_on", classic,"analyticFields": []and no composition, dimensionperiod_key, and a monthlytotalscache in the new entityledger_totals. journal_entry.balance_registrybinds to it (register: "gl.ledger",map.amount,dateField,periodDimField,validation.balanced) instead of restating the register inline.postinggainsposted_on;dimension1_id..dimension3_idare removed frompostingandjournal_entry_line.balance_registeris removed.ledger_totalsholds debit/credit turnover per (account, period_key, month) and is written by the platform only;pl_amountstays as a formula column.close_periodsetsclosedand nothing else.close_yearreads the year's P&L fromledger_totals.- Every report has a
label; itsdescriptionno longer repeats the name. - Reports:
trial_balanceandbalance_sheetare register datasets (datasetType: "R") overgl.ledger;income_statementandincome_statement_pivotreadledger_totals;account_ledgershowsposted_on. Thebalance_registerview, menu item and role rights are nowledger_totals. migrations/0.11.0.sql: fillsposting.posted_on, writes the typed openings as postedOB-<period>entries, dropsbalance_register.dependencies.metadata→>=1.17.0,dependencies.admin→>=1.21.0, withdeps/admin.jsondeclaring"entities": {}(a platform-version gate: the migration needs"dForge".next_id()and the runner, not an admin entity).version→0.11.0.gl-budget0.2.0 reads its actuals fromledger_totalsand requires gl 0.11.0.
0.8.1Sep 29, 2026
Period and year-close messages in German
Install requirement: platform 1.26.0 or newer (metadata 1.14.0), which translates action messages.
For users
The messages General Ledger shows when you close a period or a year are now in German for German users.
For developers
- Six of the eight messages in
logic/actions/joined text and values; they now use{placeholders}with their values in an object argument.translations/de-DE.jsontranslates all eight in a newmessagesblock. - New
dependenciesblock with"metadata": ">=1.14.0"and adeps/metadata.jsoncontract, so an older platform refuses the install instead of showing{placeholders}literally. version→0.8.1.
0.8.0Sep 21, 2026
Closed-period errors say what went wrong, in your language
For users
- A write into a closed period now explains itself. Saving a journal entry, or a line under one, whose date falls in a closed accounting or tax period used to fail with "The value entered isn't allowed." — the same wording any field-validation failure produces, with nothing to say a period was involved. It now reads "Entry Date falls in a closed period, so this change isn't allowed.", names the date field that put the record in that period, and is translated into German and Ukrainian.
- Both periods are reported independently. A journal entry governed by an open
accounting period but a closed tax period names
Tax Point Date, notEntry Date, so the message points at the field that has to change.
For admins
- This release must be installed for existing workspaces to get the new messages. The
guards are database triggers written at install time, so a workspace keeps the old ones
until
glis upgraded. Closed periods stay enforced either way — the platform still recognises the old form and still translates it — but until the upgrade the message cannot name the offending date field. - Workspaces running
glolder than 0.3.0 should upgrade before the platform release that ships with this. Those versions predate period-lock triggers entirely and were relying on an application-layer check that has been removed in favour of the single database-level rule. Between the two, a closed period on such a workspace is not enforced at all. - The trigger now raises the platform's own
DF003/DF004error codes instead of borrowingcheck_violation, which is what lets the message be recognised and translated rather than falling through to the generic constraint wording. - A period entity's
keyFormatis now recorded in its stored metadata. Nothing in this module's behaviour depends on it yet; it is what allows another module to lock its own documents againstgl.accounting_periodorgl.tax_period. - Period-lock configuration is now validated at install: an unresolvable period entity, an identifier that is not a plain name, or a line foreign key whose column count does not match the header's key is refused with a message naming the entity, rather than skipped with a warning that left the documents unguarded.
- No DB schema change —
dbSchemaVersionstays0.1.0; moduleversion→0.8.0.
Browse the full
module catalog.
Every module is metadata — install it in one click, then change anything.