{% extends "pos/base.html" %} {% block title %}Installment Profit Report{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}

Installment Profit Report

Cash-basis profit recognition per payment — {{ report_date }}
Clear
Total Cost
{{ grand_total_cost|floatformat:0 }}
Cash Price
{{ grand_cash_price|floatformat:0 }}
Markup
{{ grand_markup|floatformat:0 }}
Gross Profit (Expected)
{{ grand_gross_profit|floatformat:0 }}
Profit Recognized
{{ grand_profit_recognized|floatformat:0 }}
Unrealized Profit
{{ grand_unrealized|floatformat:0 }}
{% for row in report %}
Deal #{{ row.deal.installment_no }} {{ row.customer_name }} {{ row.deal.sale_date }} {% if row.deal.status == 'COMPLETED' %} Completed {% elif row.deal.status == 'ACTIVE' %} Active {% endif %}
Recognized: {{ row.total_profit_recognized|floatformat:0 }} Unrealized: {{ row.unrealized_profit|floatformat:0 }}
Total Cost
{{ row.total_cost|floatformat:0 }}
Cash Price
{{ row.cash_price|floatformat:0 }}
Markup
{{ row.markup_amount|floatformat:0 }}
Total Price
{{ row.total_price|floatformat:0 }}
Gross Profit
{{ row.gross_profit|floatformat:0 }}
Total Received
{{ row.total_received|floatformat:0 }}
{% if row.payments %}
{% for p in row.payments %} {% endfor %}
# Payment Date Amount Received Cost Recovered Profit This Payment Cumulative Received Running Profit
{{ forloop.counter }} {{ p.payment.payment_date }} {{ p.payment.amount_received|floatformat:0 }} {{ p.cost_recovered|floatformat:0 }} {% if p.profit_recognized < 0 %}({% endif %}{{ p.profit_recognized|floatformat:0 }}{% if p.profit_recognized < 0 %}){% endif %} {{ p.cumulative_received|floatformat:0 }} {{ p.running_profit|floatformat:0 }}
Totals: {{ row.total_received|floatformat:0 }} {{ row.total_cost_recovered|floatformat:0 }} {{ row.total_profit_recognized|floatformat:0 }} {{ row.total_profit_recognized|floatformat:0 }}
{% else %}
No payments received yet for this deal.
{% endif %}
{% empty %}
No deals found for the selected filters.
{% endfor %}
{% endblock %}