{# templates/invoices/receipt_80mm.html #} Receipt — {{ invoice.meta.invoice_no }}
{# LOGO + NAME #} {% if invoice.shop.logo_url %}
{% endif %}
{{ invoice.shop.name }}
{# ADDRESS / PHONES #}
{% if invoice.shop.address %}{{ invoice.shop.address }}{% endif %} {% if invoice.shop.phone_1 %} • {{ invoice.shop.phone_1 }}{% endif %} {% if invoice.shop.phone_2 %} • {{ invoice.shop.phone_2 }}{% endif %}
{# INVOICE / CUSTOMER META #}
Invoice: {{ invoice.meta.invoice_no }} Date: {{ invoice.meta.date }}
Customer: {{ invoice.customer.name }} {% if invoice.customer.phone %} • {{ invoice.customer.phone }}{% endif %}
{% if invoice.meta.area or invoice.meta.booker %}
{% if invoice.meta.area %}Area: {{ invoice.meta.area }}{% endif %} {% if invoice.meta.booker %} • SalePerson: {{ invoice.meta.booker }}{% endif %}
{% endif %}
{# ITEMS TABLE #} {% for it in invoice.items %} {% endfor %}
BG Name Wt Prc Tot
{{ it.bags_qty }} {{ it.name }} {{ it.qty }} {{ it.price|floatformat:0 }} {{ it.total|floatformat:0 }}
Total Bags: {{ invoice.summary.bags_qty }} | Qty: {{ invoice.summary.no_of_items }} | Wt: {{ invoice.summary.total_units }}
{# TOTALS #} {% if invoice.summary.previous and invoice.summary.previous != 0 %} {% endif %} {% if invoice.summary.discount and invoice.summary.discount != 0 %} {% endif %} {% if invoice.summary.transport and invoice.summary.transport != 0 %} {% endif %} {% if invoice.summary.other and invoice.summary.other != 0 %} {% endif %} {% if invoice.summary.tax and invoice.summary.tax != 0 %} {% endif %} {% if invoice.summary.paid is not None %} {% endif %} {% if invoice.summary.change is not None %} {% endif %}
Sub Total {{ invoice.summary.subtotal|floatformat:2 }}
Previous {{ invoice.summary.previous|floatformat:2 }}
Discount {{ invoice.summary.discount|floatformat:2 }}
Transport {{ invoice.summary.transport|floatformat:2 }}
Other {{ invoice.summary.other|floatformat:2 }}
Tax {{ invoice.summary.tax|floatformat:2 }}%
Grand Total {{ invoice.summary.total|floatformat:2 }}
Paid {{ invoice.summary.paid|floatformat:2 }}
Change / Remaining {{ invoice.summary.change|floatformat:2 }}
{# FOOTER — show bill_title_descp + shop footer lines #}
{% if bill_lines %}
{% for line in bill_lines %}
{{ line }} •
{% endfor %}
{% endif %} {% if invoice.remarks_override %}
{{ invoice.remarks_override }}
{% else %} {% if footer_lines %}
{% for line in footer_lines %}
{{ line }}
{% endfor %}
{% endif %} {% endif %} {% if vehicle_lines %}
    {% for label, value in vehicle_lines %}
  • • {{ label }} {{ value }}
  • {% endfor %}
{% endif %}