{% extends 'usage/usage_base.html' %} {% load custom_tags_and_filters %} {% load humanize %} {% block usage_content %}

Approved adjustments are included in the billing information.

{% if not spending %} There was a problem communicating with the billing service. The financial information associated with your usage cannot be displayed at this time. {% elif not spending.activities %}

No billing information available for the selected period

{% else %} {% for account, value in spending.activities.items %} {% for application, projects in value.items %} {% for project, users in projects.items %} {% for user, amount in users.items %} {% endfor %} {% if application.0 in spending.user_pi_applications %} {% endif %} {% endfor %} {% endfor %} {% endfor %} {% endif %}
Account: {{ account.1 }} {% if selection == account.1 %} {% if user.is_user_office or user.is_accounting_officer or user.is_facility_manager or user.is_superuser %} ${{ spending.account_totals|get_item:account.0|floatformat:2|intcomma }} {% endif %} {% endif %}
Application: {{ application.1 }} {% if application.0 in spending.user_pi_applications %} ${{ spending.application_totals|get_item:application.0|floatformat:2|intcomma }} {% endif %}
Project: {{ project.1 }}
{% if user.1 %} {{ user.1.get_full_name }} {% else %} unknown user with id {{ user.0 }} {% endif %} ${{ amount|floatformat:2|intcomma }}
Project total ${{ spending.project_totals|get_item:project.0|floatformat:2|intcomma }}
{% endblock %}