A derived balance for an account (or aggregation of accounts).
Balances are never authoritative stored state. They are projections over
immutable postings. net is signed: positive for a debit balance, negative
for a credit balance.
Summary
Functions
Builds a balance from a row of {debit_total, credit_total, count} for currency.
True when the balance is non-zero.
Types
@type t() :: %Logistiki.Projections.Balance{ account_code: String.t() | nil, account_id: term() | nil, credit_total: Decimal.t(), currency: String.t(), debit_total: Decimal.t(), net: Decimal.t(), posting_count: non_neg_integer() }
The struct type. See the module documentation for field details and examples.