accounting v0.7.0 Accounting.Journal

Functions that write to and read from the journal.

Link to this section Summary

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([Accounting.Account.no], timeout) ::
  {:ok, %{optional(Accounting.Account.no) => Accounting.Account.t}} |
  {: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(Accounting.Account.no, 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