{% extends 'base.html' %} {% load i18n cashbook_extras %} {% block content %}

{% trans "Transactions" %}

{% trans "Date" %}{% if date_label %}: {{ date_label }}{% endif %} ▾
{% trans "Type" %} ▾
{% for key,val in ttype_choices %} {% endfor %}
{% trans "Account" %} ▾
{% for a in accounts %} {% endfor %}
{% trans "Category" %} ▾
{% for c in categories %} {% endfor %}
{% trans "Search" %}{% if search_label %}: {{ search_label|truncatechars:18 }}{% endif %} ▾
{% if request.GET.credit %}{% endif %}
{% trans "Excel" %} {% trans "PDF" %}
{% for t in page_obj %} {% empty %} {% endfor %}
{% trans "Date" %} {% trans "Type" %} {% trans "Account" %} {% trans "Category" %} {% trans "Amount" %} {% trans "Description" %} {% trans "Actions" %}
{{ t.date }} {{ t.get_ttype_display }} {% if t.ttype == 'income' %}{% trans "Sale" %}{% endif %} {% if t.is_credit %}{% trans "Credit" %}{% endif %} {{ t.account.name }} {% if t.category %}{{ t.category.name }}{% endif %} {{ t.amount }} {{ biz.currency|currency_label }} {{ t.description }} {% if t.ttype == 'income' %} {% trans "Receipt" %} {% else %} {% trans "View" %} {% endif %}
{% trans "No transactions found." %}
{% if is_paginated %}
{% trans "Page" %} {{ page_obj.number }} {% trans "of" %} {{ paginator.num_pages }}
{% if page_obj.has_previous %} {% trans "Prev" %} {% else %} {% trans "Prev" %} {% endif %} {% for num in paginator.page_range %} {% if num == page_obj.number %} {{ num }} {% elif num >= page_obj.number|add:-2 and num <= page_obj.number|add:2 %} {{ num }} {% endif %} {% endfor %} {% if page_obj.has_next %} {% trans "Next" %} {% else %} {% trans "Next" %} {% endif %}
{% endif %}
{% endblock %}