{% extends "pos/base.html" %} {% load humanize %} {% block title %}Company Ledger{% if cust_name %} — {{ cust_name }}{% endif %}{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}
| Date | Reference | Vehicle | Debit (Billed) | Credit (Received) | Balance | Action |
|---|---|---|---|---|---|---|
| {{ row.date|date:"d-M-y" }} |
{{ row.ref }}
{% if row.type == 'invoice' and row.job %}
{{ row.job.vehicle.make }} {{ row.job.vehicle.model }}
{% endif %}
|
{{ row.vehicle|default:"" }} | {% if row.debit %}{{ row.debit|floatformat:0|intcomma }}{% else %}—{% endif %} | {% if row.credit %}{{ row.credit|floatformat:0|intcomma }}{% else %}—{% endif %} | {{ row.balance|floatformat:0|intcomma }} | {% if row.type == 'invoice' and row.job %} View {% elif row.type == 'payment' and row.pay %} {% endif %} |
| No transactions in this period. | ||||||
| CLOSING BALANCE | {{ total_billed|floatformat:0|intcomma }} | {{ total_received|floatformat:0|intcomma }} | {{ total_outstanding|floatformat:0|intcomma }} | |||
| Job # | Date | Vehicle | Invoice # | Billed | Cust.Share | Ins.Share | Received | Outstanding | Status | Actions |
|---|---|---|---|---|---|---|---|---|---|---|
| #{{ row.job.job_no }} | {{ row.job.job_date|date:"d-M-y" }} |
{{ row.job.vehicle.reg_no }}
{{ row.job.vehicle.make }} {{ row.job.vehicle.model }}
|
{{ row.job.invoice_no|default:"—" }} | {{ row.billed|floatformat:0|intcomma }} |
{% if row.dep_per %}
{{ row.cust_share|floatformat:0|intcomma }}
{{ row.dep_per|floatformat:1 }}%
{% else %}—{% endif %}
|
{% if row.dep_per %}{{ row.ins_share|floatformat:0|intcomma }}{% else %}—{% endif %} | {{ row.paid|floatformat:0|intcomma }} | {{ row.outstanding|floatformat:0|intcomma }} | {{ row.status }} | View {% if row.outstanding > 0 %} Pay {% endif %} |
| Receipt #{{ p.description }} — {{ p.transaction_date|date:"d-M-y" }} | {{ p.amount_transaction|floatformat:0|intcomma }} | |||||||||
| No jobs in this period. | ||||||||||
| TOTAL | {{ total_billed|floatformat:0|intcomma }} | {{ total_received|floatformat:0|intcomma }} | {{ total_outstanding|floatformat:0|intcomma }} | |||||||
Select company type, search by name, then click Search.