{% extends "pos/base.html" %} {% load static %} {% block title %}Duplicate Sales Finder{% endblock %} {% block stylesheets %} {% endblock %} {% block heading %}Duplicate Sales Finder{% endblock %} {% block content %}
Reset
{% if missing_items %}
Note: These invoices have no sale_product lines and were skipped: {{ missing_items|join:", " }}
{% endif %}
Confirmed Duplicate Groups
{% if not groups %}
No duplicate groups matched your filters.
{% endif %} {% for g in groups %}
{{ g.category_label }} Total = {{ g.rounded_total|floatformat:2 }} ({{ g.invoice_count }} invoices) {% if g.date_from and g.date_to %} {{ g.date_from }} → {{ g.date_to }} {% endif %}
Signature: {{ g.signature|slice:":12" }}…
Items (product_code → qty):
{% for pc, q in g.items_example %} {% endfor %}
ProductQty
{{ pc }}{{ q }}
Invoices in this group:
{% for m in g.members %} {% endfor %}
Invoice # Date Customer Total Actions
{{ m.invoice_no }} {{ m.date }} {{ m.customer }} {{ m.rounded_total|floatformat:2 }}
{% if g.customers %}
Customers sample: {% for c in g.customers %}{{ c }}{% endfor %}
{% endif %}
{% endfor %}
{% endblock %} {% block javascripts %} {% endblock %}