Skip to main content

Module accounting

Expand description

Double-entry accounting kernel.

Amounts are signed integer minor units (for example cents). Posting debits and credits must be finite ledger amounts: non-negative, one-sided, and balanced per journal entry.

Structs§

Account
AccountBalance
JournalEntry
Posting
TrialBalance

Enums§

AccountType
AccountingConservationError
Zero-heap conservation error for integer minor-unit journal verification.
AccountingError

Functions§

account_balances_into
Compute balances for every supplied account into caller-owned output.
compile_journal_Posting_quin
Zero-heap compilation of a Posting into a 48-byte crate::NQuin.
compile_journal_posting_quin
Snake-case alias for compile_journal_Posting_quin.
trial_balance
Aggregate posting totals and account-side trial-balance totals.
validate_balanced_entry
Validate that all postings belonging to entry_id form a balanced entry.
validate_journal_entries
Validate all declared journal entries.
validate_journal_entry
Validate a journal entry’s declared posting slice and balance.
verify_integer_journal_conservation
Zero-heap integer minor-unit double-entry conservation verifier (AGENTS.md §0-A).