{% load natural %} {% load i18n %}
{% for date in dates %} {% if date %}
{{ date.date|date:"l"|lower }}
{{ date.day }}
{% for transaction in date.transactions %} {% if transaction.is_paid %} {% if transaction.type == "IN" and not transaction.account.is_asset %} {% elif transaction.type == "IN" and transaction.account.is_asset %} {% elif transaction.type == "EX" and not transaction.account.is_asset %} {% elif transaction.type == "EX" and transaction.account.is_asset %} {% endif %} {% else %} {% if transaction.type == "IN" and not transaction.account.is_asset %} {% elif transaction.type == "IN" and transaction.account.is_asset %} {% elif transaction.type == "EX" and not transaction.account.is_asset %} {% elif transaction.type == "EX" and transaction.account.is_asset %} {% endif %} {% endif %} {% endfor %}
{% else %}
{% endif %} {% endfor %}