{% extends 'base.html' %} {% load i18n %} {% block content %}
{% trans "Journal Entry details" %}

{{ date_from }} - {{ date_to }}

{% for journal_entry in journal_entries %} {% for item in journal_entry.items.all %} {% if not item.debit %} {% endfor %} {% endfor %}
Account Debit Credit
{% if forloop.counter == 1 %} {{ journal_entry.date }} {% else %}   {% endif %} {% endif %} {{ item.account }} {% if item.debit %} {{ item.value|floatformat:2 }} {% endif %} {% if not item.debit %} {{ item.value|floatformat:2 }} {% endif %}
  Description {{ journal_entry.description }}    
Total {{ total|floatformat:2 }} {{ total|floatformat:2 }}
{% endblock %}