{% extends "_layout.html" %} {% set active_page = 'statistics' %} {% import '_account_macros.html' as account_macros %} {% block javascript %} {% endblock %} {% block content %}

Statistics

{% set statistics = api.statistics() %}

Postings per Account

{% for account_name, num in statistics.postings_by_account|dictsort(false, 'value')|reverse %} {% endfor %}
Type # Entries
{{ account_name }} {{ num }}
Total {{ statistics.postings_by_account_total }}

Update Activity per Account

{% for activity in statistics.activity_by_account %} {% if uptodate_eligible(activity.account) %} {% with status=api.is_account_uptodate(activity.account, look_back_days=config.user.getint('uptodate-indicator-grey-lookback-days')) %} {% endwith %} {% else %} {% endif %} {% endfor %}
Account Last Entry Balance
{{ activity.account }} {% with account_inventory=api.inventory(activity.account) %} {% endwith %} {{ activity.last_posting_date }} {%- for position in api.inventory(activity.account) -%} {{ position.units.number|format_currency }} {{ position.units.currency }}{% if not loop.last %}
{% endif %} {% endfor -%}

Directive Type

{% for type, num in statistics.entries_by_type|dictsort(false, 'value')|reverse %} {% endfor %}
Type # Entries
{{ type }} {{ num }}
Total {{ statistics.entries_by_type_total }}
{% endblock %}