{# 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 #}
{# ITEMS TABLE #}
| BG |
Name |
Wt |
Prc |
Tot |
{% for it in invoice.items %}
| {{ it.bags_qty }} |
{{ it.name }} |
{{ it.qty }} |
{{ it.price|floatformat:0 }} |
{{ it.total|floatformat:0 }} |
{% endfor %}
Total Bags: {{ invoice.summary.bags_qty }} |
Qty: {{ invoice.summary.no_of_items }} |
Wt: {{ invoice.summary.total_units }}
{# TOTALS #}
| Sub Total |
{{ invoice.summary.subtotal|floatformat:2 }} |
{% if invoice.summary.previous and invoice.summary.previous != 0 %}
| Previous |
{{ invoice.summary.previous|floatformat:2 }} |
{% endif %}
{% if invoice.summary.discount and invoice.summary.discount != 0 %}
| Discount |
{{ invoice.summary.discount|floatformat:2 }} |
{% endif %}
{% if invoice.summary.transport and invoice.summary.transport != 0 %}
| Transport |
{{ invoice.summary.transport|floatformat:2 }} |
{% endif %}
{% if invoice.summary.other and invoice.summary.other != 0 %}
| Other |
{{ invoice.summary.other|floatformat:2 }} |
{% endif %}
{% if invoice.summary.tax and invoice.summary.tax != 0 %}
| Tax |
{{ invoice.summary.tax|floatformat:2 }}% |
{% endif %}
| Grand Total |
{{ invoice.summary.total|floatformat:2 }} |
{% if invoice.summary.paid is not None %}
| Paid |
{{ invoice.summary.paid|floatformat:2 }} |
{% endif %}
{% if invoice.summary.change is not None %}
| Change / Remaining |
{{ invoice.summary.change|floatformat:2 }} |
{% endif %}
{# FOOTER — show bill_title_descp + shop footer lines #}