{# templates/sales/contracts_report.html #} {% extends "pos/base.html" %} {% load humanize %} {% block content %}
| # | Contract No | Title | Customer | Status | Contract Amount | Invoice Count | Invoiced Total | Received Total | Expenses | Gross Profit | Net Profit | % Complete | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} | {{ c.contract_no|default:c.id }} | {{ c.title|default:"" }} | {{ cust.name }} | {{ c.status|upper }} | {{ row.contract_amount|floatformat:2 }} | {{ row.invoice_count }} | {{ row.invoice_total|floatformat:2 }} | {{ row.received_total|floatformat:2 }} | {{ row.expense_total|floatformat:2 }} | {{ row.gross_profit|floatformat:2 }} | {{ row.net_profit|floatformat:2 }} | {{ row.completion_pct|floatformat:2 }}% | Edit View |
| No contracts found. | |||||||||||||
| Grand Totals | {{ grand.contract_amount|floatformat:2 }} | {{ grand.invoice_count }} | {{ grand.invoice_total|floatformat:2 }} | {{ grand.received_total|floatformat:2 }} | {{ grand.expense_total|floatformat:2 }} | {{ grand.gross_profit|floatformat:2 }} | {{ grand.net_profit|floatformat:2 }} | ||||||