{% if is_bulk %}
📄 {{ invoices|length }} Invoices Loaded
{% endif %} {% for inv in invoices %}
{% if inv.show_header %}
{% if is_bulk %}Invoice {{ forloop.counter }} of {{ invoices|length }}{% else %}Page 1 of 1{% endif %}
{{ inv.invoice_no_raw }}-{{ inv.invoice_date }}
{% if inv.shop.logo_url %}
Logo
{% endif %}
{{ inv.shop.name|default:"BLUEPRIMES SOFTWARE" }}
{{ inv.shop.address|default:"" }}
{% if inv.shop.phone_1 %}{{ inv.shop.phone_1 }}{% endif %}
{% endif %}
Customer Code: {{ inv.customer.code|default:"" }}
Invoice No: {{ inv.invoice_no }}
Name: {{ inv.customer.business_name }}
Invoice Date: {{ inv.invoice_date }}
Area: {{ inv.customer.area|default:inv.area|default:"" }}
Salesman: {{ inv.order_booker|default:"" }}
Address: {{ inv.customer.address }}
Delivery Man: {{ inv.delivery_man }}
Phone: {{ inv.customer.phone }}
Due Date: {{ inv.due_date }}
NIC: {{ inv.customer.cnic }}
License # {{ inv.customer.license_no|default:"N/A" }} {{ inv.expiry_status_text }}
NTN # {{ inv.customer.ntn|default:"#" }}
License Expiry: {{ inv.customer.license_exp|default:"N/A" }}
Sale Type: {% if inv.t_cat_str == 'return' %}RETURN{% else %}REGULAR{% endif %}
{% for company_name, company_data in inv.items_by_company.items %} {% for item in company_data.items %} {% endfor %} {% empty %} {% endfor %} {% if inv.items_by_company %} {% endif %}
Computer Code Product Name Batch No. Expiry Date Qty Bonus Tp Gross Val. Disc % Disc Val Amount
.
{{ item.product_code|default:item.sn }} {{ item.name }} {{ item.batch|default:"0" }} {{ item.expiry }} {{ item.qty }} {{ item.bonus }} {{ item.price }} {{ item.gross }} {{ item.disc_pct|default:"-" }} {{ item.disc_amt }} {{ item.grand }}
{{ company_data.total_qty|floatformat:0 }} - {{ company_data.total_gross|floatformat:2 }} {{ company_data.total_grand|floatformat:2 }}
No items found
{{ inv.totals.total_qty|floatformat:0 }} {{ inv.totals.total_gross|floatformat:2 }} {{ inv.totals.total_disc|floatformat:2 }} {{ inv.totals.total_grand|floatformat:2 }}
Gross Total {{ inv.totals.total_grand|floatformat:2 }}
Previous Balance {{ inv.pre_balance }}
Net Payable: {{ inv.total_payable }}
{% if inv.amount_in_words %}
{{ inv.amount_in_words }}
{% endif %} {% if inv.show_footer and inv.terms_html %} {% endif %}

Software Provided by Blue Primes Software (Pvt) Ltd

Ph# +92-317-5960388

Ref# 7806 - {{ inv.totals.total_items }}
{% endfor %}