{% extends "pos/base.html" %} {% load static %} {% block title %}Item Wise Purchase Report{% endblock %} {% block heading %}Item Wise Purchase Report{% endblock %} {% block content %} {% csrf_token %}
Reset
{% if result.grouped %} {% for g in result.groups %}
{{ g.label }}
{% if filters.show_weight %}{% endif %} {% for r in g.rows %} {% if filters.show_weight %}{% endif %} {% endfor %} {% if filters.show_weight %}{% endif %}
ProductQtyAvg Rate DiscountTotalTonnage
{{ r.name }} {{ r.qty|floatformat:2 }} {{ r.avg_rate|floatformat:2 }} {{ r.discount|floatformat:2 }} {{ r.total|floatformat:2 }}{{ r.weight|floatformat:2 }}
Subtotal {{ g.subtotal.qty|floatformat:2 }} {{ g.subtotal.discount|floatformat:2 }} {{ g.subtotal.total|floatformat:2 }}{{ g.subtotal.weight|floatformat:2 }}
{% endfor %} {% else %}
{% if filters.show_weight %}{% endif %} {% for r in result.rows %} {% if filters.show_weight %}{% endif %} {% endfor %}
ProductQtyAvg Rate DiscountTotalTonnage
{{ r.name }} {{ r.qty|floatformat:2 }} {{ r.avg_rate|floatformat:2 }} {{ r.discount|floatformat:2 }} {{ r.total|floatformat:2 }}{{ r.weight|floatformat:2 }}
{% endif %}
Grand Total — Qty: {{ result.grand.qty|floatformat:2 }} | Discount: {{ result.grand.discount|floatformat:2 }} | Total: {{ result.grand.total|floatformat:2 }} {% if filters.show_weight %}| Tonnage: {{ result.grand.weight|floatformat:2 }}{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}