{# 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 #}
| Sn |
Name |
Qty |
Price |
Total |
{% for it in invoice.items %}
| {{ forloop.counter }} |
{{ it.name }} |
{{ it.qty }} |
{{ it.price|floatformat:0 }} |
{{ it.total|floatformat:0 }} |
{% endfor %}
Total Qty: {{ invoice.summary.no_of_items }} |
Total Units: {{ invoice.summary.total_units }}
{# TOTALS #}
| Sub Total |
{{ invoice.summary.subtotal|floatformat:2 }} |
{% 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 %}
{% if invoice.meta.sale_type == "Credit" %}
| Invoice Total |
{{ invoice.summary.total|floatformat:2 }} |
{% if invoice.summary.previous and invoice.summary.previous != 0 %}
| Previous |
{{ invoice.summary.previous|floatformat:2 }} |
{% endif %}
| Grand Total |
{{ invoice.summary.total|add:invoice.summary.previous|floatformat:2 }} |
{% else %}
| Grand Total |
{{ invoice.summary.total|floatformat:2 }} |
{% endif %}
{% 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 #}