Computes projections over immutable postings.
Balances are never authoritative stored state; they are derived here. The
simulation backend delegates to this engine. The Beancount backend uses
beancount_ex as the oracle and its results are compared against this
engine's.
Supported projections
balance/2— leaf or parent account (aggregates descendants)balance_for_entity/2— accounts linked to an entitybalance_for_entity_tree/2— accounts linked to an entity subtreestatement/2— running-balance statement linestrial_balance/1— debit/credit totals per account per currencygeneral_ledger/1— all postings orderedbalance_sheet/1,income_statement/1— sectioned views
Summary
Functions
Computes the balance(s) for account (a struct, id, or code). Aggregates descendants for parent accounts.
Computes balances for accounts linked to entity.
Computes balances for accounts linked to entity or any of its descendants.
Builds a balance sheet (assets, liabilities, equity).
Builds a general ledger view of all posted postings.
Builds an income statement (income, expenses, net profit).
Builds a running-balance statement for account (aggregates descendant postings).
Builds a trial balance across all posted journals.
Functions
Computes the balance(s) for account (a struct, id, or code). Aggregates descendants for parent accounts.
Computes balances for accounts linked to entity.
Computes balances for accounts linked to entity or any of its descendants.
Builds a balance sheet (assets, liabilities, equity).
Builds a general ledger view of all posted postings.
Builds an income statement (income, expenses, net profit).
Builds a running-balance statement for account (aggregates descendant postings).
Builds a trial balance across all posted journals.