pub fn ledger_balance(args: &Value, span: Span) -> Result<Value, Diagnostic>Expand description
Finance.ledger_balance — compute account balances from double-entry postings.
Validates per-entry journal balance (validate_balanced_entry) and overall
trial_balance by default unless allow_unbalanced_projection: true (or
validate_entries: false) is explicitly set. Performs checked i128 -> i64
conversion (i64::try_from) so wide totals never silently truncate.