{% set lines_to_show = display_lines if display_lines else invoice.lines %}
{% if company %} {% if company.address_line1 %}
{{ company.address_line1 }}
{% endif %} {% if company.address_line2 %}
{{ company.address_line2 }}
{% endif %} {% set seller_loc = [] %} {% if company.city %}{% set _ = seller_loc.append(company.city) %}{% endif %} {% if company.state %}{% set _ = seller_loc.append(company.state) %}{% endif %} {% if company.pincode %}{% set _ = seller_loc.append(company.pincode) %}{% endif %} {% if seller_loc %}
{{ seller_loc|join(", ") }}
{% endif %} {% if company.pan %}
PAN - {{ company.pan }}
{% endif %} {% if company.gst_number %}
GST NO - {{ company.gst_number }}
{% endif %} {% endif %}
{% if invoice.invoice_type == "PROFORMA" %} PROFORMA INVOICE {% else %} TAX INVOICE {% endif %}
CUSTOMER NAME {{ billing.trade_name or "-" }}
BILLING ADDRESS
{% if billing.billing_address %} {% for line in billing.billing_address.split('\n') %} {% if line.strip() %}
{{ line }}
{% endif %} {% endfor %} {% else %}
-
{% endif %} {% if billing.gst_number %}
GST - {{ billing.gst_number }}
{% endif %}
PLACE OF SUPPLY - {% if service_meta is defined and service_meta.place_of_supply %} {{ service_meta.place_of_supply }} {% else %} INDIA {% endif %}
DATE {{ invoice.issue_date }}
{% if invoice.invoice_type == "PROFORMA" %}INVOICE NO.{% else %}INVOICE #{% endif %} {{ invoice.invoice_number }}
{% if invoice.campaign %}
CAMPAIGN {{ invoice.campaign.title }}
CID C{{ invoice.campaign.id }}
{% elif invoice.id %}
CID C{{ invoice.id }}
{% endif %}
Service Details
{% for line in lines_to_show %} {% else %} {% endfor %}
DESCRIPTION SECTOR HSN Code DELIVERABLES TOTAL (INR)
{{ line.description or "-" }} {{ line.sector or (service_meta.sector if service_meta is defined and service_meta.sector else "Advertisement") }} {{ line.hsn_code or (service_meta.hsn_code if service_meta is defined and service_meta.hsn_code else "998361") }} {% if line.deliverables %} {{ line.deliverables }} {% elif line.quantity %} {{ line.quantity }} {% else %} - {% endif %} {{ "{:,.2f}".format(line.total or 0) }}
No line items found.
Taxable Value {{ "{:,.2f}".format(invoice.subtotal or 0) }}
{% if invoice.tax_percent %} GST ({{ "%.0f"|format(invoice.tax_percent or 0) }}%) on Taxable Value {% else %} GST on Taxable Value {% endif %} {{ "{:,.2f}".format(invoice.tax_amount or 0) }}
Final Value {{ "{:,.2f}".format(invoice.total_amount or 0) }}
Name - {{ company.bank_account_name or company.company_name or "-" }}
Account No. - {{ company.bank_account_number or "-" }}
IFSC Code. - {{ company.bank_ifsc or "-" }}
Branch - {{ company.bank_branch or "-" }}
{% if invoice.notes %}
{{ invoice.notes }}
{% endif %}
{% if annexure_rows %}
ANNEXURE
Creator & Deliverable Details
{% for row in annexure_rows %} {% endfor %}
# Creator Name Handle Deliverables
{{ loop.index }} {{ row.creator_name }} {% if row.creator_handle %} @{{ row.creator_handle }} {% else %} - {% endif %} {% if row.deliverables %} {% for d in row.deliverables %}
{{ d.label }}
{% endfor %} {% else %} - {% endif %}
{% endif %}