{% extends 'base.html' %} {% load static %} {% load humanize %} {% block content %}

Invoice Details

{% include 'partials/_messages.html' %}
{% for invoice_item in page %} {% endfor %}
Date Item Code Item Item Count
{{invoice_item.date}} {{invoice_item.item_code}} {{invoice_item.item_name}} {{invoice_item.item_count|floatformat:0|intcomma}}
{% if has_entries %} {% if page|length == 1 %}
{{ page.paginator.count }} entry
{% else %}
{{ page.start_index }} to {{ page.end_index }} of {{ page.paginator.count }} entries
{% endif %} {% else %}
No entries
{% endif %}
{% if has_entries %}
Page {{page.number}} of {{page.paginator.num_pages}}
{% endif %}
{% if has_entries %}
    {% if page.has_previous %} {% else %} {% endif %} {% for page_number in page_list %} {% if page_number == page.paginator.ELLIPSIS %} {{page_number}} {% else %} {% if page_number == page.number %}
  • {{page_number}}
  • {% else %}
  • {{page_number}}
  • {% endif %} {% endif %} {% endfor %} {% if page.has_next %} {% else %} {% endif %}
{% endif %}
{% endblock %}