{% extends 'base.html' %} {% load static %} {% block page_style %} {% endblock page_style %} {% block page_js %} {% endblock page_js %} {% block page_content %} {% include 'messages.html' %}
{{ form_data }}
{% csrf_token %}
{{ form.date_from }}
{{ form.date_from.errors }}
{{ form.date_to }}
{{ form.date_to.errors }}
{{ form.branch }}
{{ form.date_branch.errors }}

Total {{ sum.total__sum }}

{% if sale_list|length > 0 %} {% for sale in sale_list %} {% endfor %}
DateBranchProductQtyPriceTotal
{{ sale.datetime }} {{ sale.branch.name }} {{ sale.product.name }} {{ sale.quantity }} {{ sale.unit_price }} {{ sale.total }}
{% else %}
No sales have been made yet
{% endif %}
{% endblock page_content %}