{% load widget_tweaks %} {% block content%}
{% csrf_token %}
Name
Quantity
Unit Price
Total Amount
Action
{% for sale in sales %}
{{ sale.name }}
{{ sale.quantity }}
{{ sale.unit_price }}
{{ sale.total_amount }}
{% endfor %} {% if not total_sales.total_amount__sum is None %}
Grand Total
{{ total_sales.total_amount__sum }}
{% endif %} {%endblock%}