Logistiki.Projections.TrialBalance (logistiki v0.1.0)

Copy Markdown View Source

A trial balance: debit/credit totals per account per currency.

Debits and credits must balance per currency (balanced flag).

Summary

Types

t()

The struct type. See the module documentation for field details and examples.

Types

line()

@type line() :: %{
  account_code: String.t(),
  account_name: String.t() | nil,
  debit_total: Decimal.t(),
  credit_total: Decimal.t(),
  net: Decimal.t(),
  currency: String.t()
}

t()

@type t() :: %Logistiki.Projections.TrialBalance{
  balanced: boolean(),
  currencies: [String.t()],
  lines: [line()]
}

The struct type. See the module documentation for field details and examples.