{% extends 'base.html' %} {% block content %}

Sales Report

Export CSV
{% for s in rows %} {% else %} {% endfor %}
Date Customer Weight (kg) Price/kg Total Amount Status Payment
{{ s.date }} {{ s.customer.name }} {{ s.weight_kg|kg }} {{ s.price_per_kg|currency }} {{ s.total_amount|currency }} {{ s.status }} {{ s.payment_status }}
No data.
Grand Total {{ total|currency }}

Customer Balances

{% for s in rows | map(attribute='customer') | unique %} {% endfor %}
Customer Balance
{{ s.name }} {{ (balances[s.id] if balances and s and s.id in balances else 0)|currency }}
{% endblock %}