{% extends "pos/base.html" %} {% load humanize %} {% block title %}Invoice Reprints{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}
Invoice Reprints
Search by Job #, Invoice #, or Reg No → reprint any format
Reports
{% if search_q %} {% endif %}
{% if error %}
{{ error }}
{% endif %} {% if jobs %}
{{ jobs|length }} result{{ jobs|length|pluralize }} found — click to select
{% for j in jobs %}
#{{ j.job_no }} {{ j.job_date|date:"d-M-y" }}
{{ j.vehicle.reg_no }} {{ j.vehicle.make }} {{ j.vehicle.model }}
{{ j.vehicle.owner_name|default:"" }}
{% if j.invoice_no %} Inv #{{ j.invoice_no }} {% endif %} {% if j.status == "invoiced" %} Invoiced {% elif j.status == "ready" %} Ready {% elif j.status == "in_progress" %} In Progress {% else %} Draft {% endif %}
{% endfor %}
{% endif %} {% if job %}
{# Job details card #}
Job Details
{# Status + Billing row #}
{% if job.status == "invoiced" %} Invoiced {% elif job.status == "ready" %} Ready {% elif job.status == "in_progress" %} In Progress {% else %} Draft {% endif %} {% if job.billing_type == "cash" %} Cash {% elif job.billing_type == "credit" %} Credit {% elif job.billing_type == "corporate" %} Corporate {% elif job.billing_type == "insurance" %} Insurance {% elif job.billing_type == "complimentary" %} Complimentary {% endif %}
Job # #{{ job.job_no }}
Invoice # {% if job.invoice_no %}{{ job.invoice_no }}{% else %}—{% endif %}
Date {{ job.job_date|date:"d-M-Y" }}
KM {{ job.odometer_in|intcomma|default:"—" }}
Reg. No. {{ job.vehicle.reg_no }}
Frame # {{ job.vehicle.frame_no|default:"—" }}
Vehicle {{ job.vehicle.make }} {{ job.vehicle.model }}{% if job.vehicle.year %} '{{ job.vehicle.year|stringformat:"s"|slice:"-2:" }}{% endif %}
Color {{ job.vehicle.color|default:"—" }}
Owner {{ job.vehicle.owner_name|default:"—" }}
Mobile {{ job.vehicle.owner_mobile|default:"—" }}
{% if cust_name %}
Billing Customer {{ cust_name }}
{% endif %} {% if job.loss_no %}
Loss # {{ job.loss_no }}
{% endif %}

{# Financial summary #}
Parts Net Rs. {{ job.parts_net|floatformat:0|intcomma|default:"—" }}
Labour Net Rs. {{ job.services_net|floatformat:0|intcomma|default:"—" }}
Total Amount Rs. {{ job.net_amount|floatformat:0|intcomma|default:"—" }}
{# Print type buttons #}
Print Formats — {{ print_types|length }} available
{% for pt in print_types %}
Open
{% endfor %}
{% if not job.status == "invoiced" %}
Job not yet invoiced. Only Pre-Print will show actual invoice data. Other prints may show empty/zero amounts.
{% endif %}
{# /row #} {% endif %} {% if not job and not jobs and not error and not search_q %}
Search for a job

Enter a Job #, Invoice #, or Vehicle Reg. No. above to find the job and access all print formats.

{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}