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§
Enums§
- Account
Type - Accounting
Conservation Error - Zero-heap conservation error for integer minor-unit journal verification.
- Accounting
Error
Functions§
- account_
balances_ into - Compute balances for every supplied account into caller-owned output.
- compile_
journal_ Posting_ quin - Zero-heap compilation of a
Postinginto a 48-bytecrate::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_idform 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).