Logistiki.Projections (logistiki v0.1.0)

Copy Markdown View Source

The context for projections.

Balances are never authoritative stored state; they are projections over immutable postings. This module delegates to Logistiki.Projections.ProjectionEngine (used by the simulation backend) so callers can compute projections regardless of the configured ledger backend.

Summary

Functions

Computes balance(s) for an account (struct, id, or code). Aggregates descendants.

Computes balances for accounts linked to an entity.

Computes balances for accounts linked to an entity subtree.

Builds a balance sheet.

Builds a general ledger view.

Builds an income statement.

Builds a running-balance statement for an account.

Builds a trial balance.

Functions

balance(account, opts \\ [])

(since 0.1.0)

Computes balance(s) for an account (struct, id, or code). Aggregates descendants.

balance_for_entity(entity, opts \\ [])

(since 0.1.0)

Computes balances for accounts linked to an entity.

balance_for_entity_tree(entity, opts \\ [])

(since 0.1.0)

Computes balances for accounts linked to an entity subtree.

balance_sheet(opts \\ [])

(since 0.1.0)

Builds a balance sheet.

general_ledger(opts \\ [])

(since 0.1.0)

Builds a general ledger view.

income_statement(opts \\ [])

(since 0.1.0)

Builds an income statement.

statement(account, opts \\ [])

(since 0.1.0)

Builds a running-balance statement for an account.

trial_balance(opts \\ [])

(since 0.1.0)

Builds a trial balance.