{% extends "invoices/base.html" %} {% load i18n %} {% load base_filters %} {% load invoice_tags %} {% load accounting_tags %} {% block title %}{{ block.super }}{% trans 'Invoice Accounting Entries View'%}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block body %}
{% invoice_nav invoice %}

{% blocktrans with invoice.id as invoice_id %}Accounting Entries View for Invoice {{ invoice_id }}{% endblocktrans %}

{% blocktrans with invoice.id as invoice_id %}A summary of the accounting entries for invoice {{ invoice_id }} is below.{% endblocktrans %}

{% trans "Invoice:" %} {{ invoice.id }}
{% if acct_entries %} {% for acct_entry in acct_entries%} {# bad unused div here, but i want to pass the entry_class to acct_entry_item #} {% acct_entry_item acct_entry entry_class %} {% endfor %}
{% trans "Account" %} {% trans "Debit" %} {% trans "Credit" %} {% trans "DateTime" %} {% trans "Description" %}
 
{% trans "Total:" %} {{ total_debit }} {{ total_credit }}  
{% endif %}
{% trans "Total by Account:" %}
{% for acctnum in account_numbers %} {% endfor %}
{% trans "Account" %}   {% trans "Total" %}
{{ acctnum.account_number }} {{ acctnum.description }} {{ acctnum.total|format_currency }}
{% trans "View All Account Numbers" %}
{% endblock %}