{% extends "_layout.html" %} {% set active_page = 'trial_balance' %} {% import '_account_macros.html' as account_macros with context %} {% block title %}Account {{ account_name }}{% endblock %} {% block content %} {{ account_macros.account_name_header(account_name) }} {% if not interval %} {% include "charts/_chart_skeleton.html" %} {% with linechart_data = api.linechart_data(account_name) %} {% include "charts/_chart_account_balance.html" %} {% endwith %} {% with label="Monthly Changes", monthly_totals=api.interval_totals('month' ,account_name) %} {% include "charts/_chart_monthly_totals.html" %} {% endwith %} {% set treemap_data = api.treemap_data(account_name) %} {% with label=treemap_data.label, rows=treemap_data.balances, modifier=treemap_data.modifier, level=account_name|account_level-1 %} {% include "charts/_chart_treemap.html" %} {% endwith %} {% elif interval == 'month' %} {% set interval_format_str = "%b '%y" %} {% include "charts/_chart_skeleton.html" %} {% with label="Monthly Balances" if accumulate else "Monthly Changes", monthly_totals=api.interval_totals('month' ,account_name, accumulate) %} {% include "charts/_chart_monthly_totals.html" %} {% endwith %} {% elif interval == 'year' %} {% set interval_format_str = "%Y" %} {% include "charts/_chart_skeleton.html" %} {% with label="Yearly Balances" if accumulate else "Yearly Changes", yearly_totals=api.interval_totals('year', account_name, accumulate) %} {% include "charts/_chart_yearly_totals.html" %} {% endwith %} {% endif %}
Account Expand all | {% for _, end_date in dates|reverse %}{{ end_date.strftime(interval_format_str) }} | {% endfor %}
---|---|
{{ row[0].account|last_segment }} | {% for entry in row|reverse %}
{% if entry.balances|length > 0 %}
{% for currency, number in entry.balances.items() %}
{% if number %}
{{ number|format_currency }} {{ currency }} {% endif %} {% endfor %} {% endif %} {% if entry.balances_children|length > 0 %} {% for currency, number in entry.balances_children.items() %} {% if number %} {{ number|format_currency }} {{ currency }} {% endif %} {% endfor %} {% endif %} |
{% endfor %}
{% for entry in interval_balances[0]|reverse %} |
{% for currency, number in entry.balances_children.items() %}
{% if number %}
{{ number|format_currency }} {{ currency }} {% endif %} {% endfor %} |
{% endfor %}
No entries for this account{% if entry_filters %} and the applied filters{% endif %}.
{% endif %} {% endblock %}