accounting v0.7.1 Accounting.Journal

Functions that write to and read from the journal.

Link to this section Summary

Link to this section Types

Link to this type accounts()
accounts() :: %{optional(account_number) => Accounting.Account.t}

Link to this section Functions

Link to this function child_spec(opts)
child_spec(keyword) :: Supervisor.Spec.spec
Link to this function fetch_accounts(numbers, timeout \\ 5000)
fetch_accounts([account_number], timeout) ::
  {:ok, accounts} |
  {:error, term}
Link to this function record_entry(party, date, line_items, timeout \\ 5000)
record_entry(String.t, Date.t, [Accounting.LineItem.t], timeout) ::
  :ok |
  {:error, term}
Link to this function register_account(number, description, timeout \\ 5000)
register_account(account_number, String.t, timeout) ::
  :ok |
  {:error, term}
Link to this function register_categories(categories, timeout \\ 5000)
register_categories([atom], timeout) :: :ok | {:error, term}
Link to this function start_link(opts)
start_link(keyword) :: Supervisor.on_start