{% extends 'invoices/base.html' %} {% block title %}Invoice #{{ invoice.invoice_number }}{% endblock %} {% block page_title %}Invoice #{{ invoice.invoice_number }}{% endblock %} {% block topbar_actions %} ← Back ✏️ Edit 🖨️ Print Invoice {% endblock %} {% block content %}

CUSTOMER DETAILS

{{ invoice.customer.name }}
{% if invoice.customer.address %}
{{ invoice.customer.address }}
{% endif %} {% if invoice.customer.phone %}
📞 {{ invoice.customer.phone }}
{% endif %} {% if invoice.customer.email %}
✉️ {{ invoice.customer.email }}
{% endif %}

INVOICE INFO

Date:{{ invoice.date|date:"d M Y" }}
{% if invoice.due_date %}
Due Date:{{ invoice.due_date|date:"d M Y" }}
{% endif %}
Status:{{ invoice.get_status_display }}
{% if invoice.purpose %}
Purpose:{{ invoice.purpose }}
{% endif %}
{% for item in invoice.items.all %} {% endfor %}
#TitleDescriptionQtyRateTotal
{{ forloop.counter }} {{ item.title|default:"-" }} {{ item.description|default:"-" }} {{ item.quantity }} {{ item.rate|floatformat:2 }} {{ item.total|floatformat:2 }}
{% if invoice.notes %}

NOTES / REMARKS

{{ invoice.notes }}
{% endif %}
SubtotalPKR {{ invoice.subtotal|floatformat:2 }}
{% if invoice.discount_amount > 0 %}
Discount- PKR {{ invoice.discount_amount|floatformat:2 }}
{% endif %} {% if invoice.tax_percent > 0 %}
Tax ({{ invoice.tax_percent }}%)+ PKR {{ invoice.tax_amount|floatformat:2 }}
{% endif %}
Grand TotalPKR {{ invoice.grand_total|floatformat:2 }}
{% if invoice.amount_received > 0 %}
Amount ReceivedPKR {{ invoice.amount_received|floatformat:2 }}
Balance DuePKR {{ invoice.balance_due|floatformat:2 }}
{% endif %}
{% endblock %}