{% extends "django_pettycash/dpc_base.html" %} {% load i18n %} {% block head_resources %} {% endblock head_resources %} {% block content %}
{% for source in data.sources %} | {{source}} | {% endfor %}{% trans "Tags" %} | {% trans "Actions" %} | ||
---|---|---|---|---|---|
{% trans "Initial balance" %} | {{data.global.start|floatformat:2}} € | {% for source_pk, source_data in data.per_source.items %}{{source_data.start|floatformat:2}} € | {% endfor %}|||
{% for source in data.sources %} | {% trans "Inbound" %} | {% trans "Outbound" %} | {% endfor %}|||
{{e.entry.date}} | {# Reason #}{{e.entry.reason}} | {# Amount cells #} {% for cell in e.amount_cells %}{% if cell %}{{cell|floatformat:2}} €{% endif %} | {% endfor %} {# Tags #}{% for tag in e.entry.tags.all %} {{tag.name}} {% endfor %} | {# Actions #}{% if e.entry.note %} {% endif %} {# TODO: Think about using a with block or to check the permissions in the view, to access request.user.perms only once #} {% if perms.django_pettycash.add_entry or perms.django_pettycash.change_entry or perms.django_pettycash.delete_entry %} {% endif %} | {% endfor %}|
{% trans "Totals" %} | {% for source_pk, source_data in data.per_source.items %}{{source_data.inbound|floatformat:2}} € | {{source_data.outbound|floatformat:2}} € | {% endfor %}|||
{% for source_pk, source_data in data.per_source.items %} | {{source_data.total|floatformat:2}} € | {% endfor %}||||
{% for source in data.sources %} | {% trans "Inbound" %} | {% trans "Outbound" %} | {% endfor %}|||
{% blocktrans with month=data.month %}
Final balance {{month}} {% endblocktrans %} |
{{data.global.end|floatformat:2}} € | {% for source_pk, source_data in data.per_source.items %}{{source_data.end|floatformat:2}} € | {% endfor %}|||
{% for source in data.sources %} | {{source}} | {% endfor %}