{% extends 'index.html' %} {% load humanize %} {% block content %}

Income & Expense Summary

{% if selected_year %}

Year: {{ selected_year }}

{% else %}

All Years

{% endif %}
Print Summary

Income Categories

{% for row in income_category_totals %} {% empty %} {% endfor %} {% if income_category_totals %} {% endif %}
Category Amount  
  {{ row.category__category }} $ {{ row.total|floatformat:2|intcomma }}  
No income category data found.
Total: $ {{ income_category_total|floatformat:2|intcomma }}

Income Sub-Categories

{% for row in income_subcategory_totals %} {% empty %} {% endfor %} {% if income_subcategory_totals %} {% endif %}
Sub-Category Amount  
  {{ row.sub_cat__sub_cat }} $ {{ row.total|floatformat:2|intcomma }}  
No income sub-category data found.
Total: $ {{ income_subcategory_total|floatformat:2|intcomma }}

Expense Categories

{% for row in expense_category_totals %} {% empty %} {% endfor %} {% if expense_category_totals %} {% endif %}
Category Amount  
  {{ row.category__category }} $ {{ row.total|floatformat:2|intcomma }}  
No expense category data found.
Total: $ {{ expense_category_total|floatformat:2|intcomma }}

Expense Sub-Categories

{% for row in expense_subcategory_totals %} {% empty %} {% endfor %} {% if expense_subcategory_totals %} {% endif %}
Sub-Category Amount  
  {{ row.sub_cat__sub_cat }} $ {{ row.total|floatformat:2|intcomma }}  
No expense sub-category data found.
Total: $ {{ expense_subcategory_total|floatformat:2|intcomma }}

Year: {{ selected_year }}

{{ selected_year }} Income:   $ {{ income_category_total|floatformat:2|intcomma }}

{{ selected_year }} Expenses:   $ {{ expense_category_total|floatformat:2|intcomma }}

{{ selected_year }} Net:   $ {{ net_profit|floatformat:2|intcomma }}

{% endblock %}