{% extends "base.html" %} {% block header %}Proforma Invoices{% endblock %} {% block content %}
| PI Details | Client / Branch | Billing Company | Jobcard | Amount | Status | Approval | Invoice | Action |
|---|---|---|---|---|---|---|---|---|
| No Proforma Invoices found. | ||||||||
|
{{ pi.pi_no }}
Date: {{ pi.pi_date.strftime('%d-%m-%Y') if pi.pi_date else '-' }}
{% if pi.quote %}
Quote:
{{ pi.quote.quote_code }}
{% endif %}
|
{{ pi.client.company_name if pi.client else "-" }}
{% if pi.client_branch %}
{{ pi.client_branch.branch_location or "-" }}
{% if pi.client_branch.city %}
, {{ pi.client_branch.city }}
{% endif %}
GST:
{{ pi.client_branch.gst or "-" }}
{{ pi.client_branch.state or "-" }}
No client branch mapped
{% endif %}
|
{% if pi.company_branch %}
{{ pi.company_branch.branch_name }}
GST:
{{ pi.company_branch.gst_no or "-" }}
{% else %}
-
{% endif %}
|
{% set jc = jobcard_by_quote.get(pi.quote_id) %}
{% if jc %}
{{ jc.jobcard_code }}
{{ jc.status }}
{% else %}
-
{% endif %}
|
{{ pi.currency or "INR" }}
{{ indian_amount(pi.total_amount|float) }}
Tax: {{ indian_amount(pi.tax|float) }}
|
{% if pi.status == "Issued" %} Issued {% elif pi.status == "Converted" %} Converted {% elif pi.status == "Cancelled" %} Cancelled {% elif pi.status == "Draft" %} Draft {% else %} {{ pi.status or "-" }} {% endif %} | {% if pi.approval_status == "Approved" %} Approved {% elif pi.approval_status == "Pending Approval" %} Pending {% elif pi.approval_status == "Rejected" %} Rejected {% else %} {{ pi.approval_status or "-" }} {% endif %} |
{% set inv = invoice_by_pi.get(pi.id) %}
{% if inv %}
{{ inv.invoice_no }}
{{ inv.status }}
{% else %}
Not Generated
{% endif %}
|
View PDF |