{% extends "pos/base.html" %} {% load humanize %} {% block title %}Payment — Job #{{ job.job_no }}{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}
{% for m in messages %}
{{ m }}
{% endfor %} {# Header #}
Payment Receipt — Job #{{ job.job_no }}
{{ job.vehicle.reg_no }} | {{ job.vehicle.make }} {{ job.vehicle.model }} | {{ job.get_billing_type_display }} | Inv #{{ job.invoice_no }}
Back
{# LEFT: Summary + History #}
{# Billing summary #}
Invoice Summary
{{ total_billed|floatformat:0|intcomma }}
Total Billed
{{ total_received|floatformat:0|intcomma }}
Received
{{ outstanding|floatformat:0|intcomma }}
Outstanding
{% if dep_per %}
Insurance Breakdown ({{ dep_per|floatformat:1 }}% customer share)
Customer's Portion Rs. {{ customer_share|floatformat:0|intcomma }}
Insurance Company Rs. {{ insurance_share|floatformat:0|intcomma }}
{% endif %}
Billing Company
{{ cust_name }}
{# Payment history #}
Payment History
{% if existing_payments %} {% for p in existing_payments %}
Rs. {{ p.amount_transaction|floatformat:0|intcomma }} Receipt #{{ p.description }}
{{ p.transaction_date|date:"d-M-Y" }}  ·  {{ p.bill_title_descp|default:"Payment" }}
{% endfor %} {% else %}
No payments recorded yet.
{% endif %}
{# RIGHT: Add payment #}
{% if outstanding > 0 %}
Record New Payment
{% csrf_token %}
Rs.
{% else %}
Fully Paid
All payments have been received for this job.
{% endif %} View Full Company Ledger
{% endblock %} {% block javascripts %} {% endblock %}