{% extends "pos/base.html" %} {% load static %} {% block title %}Multi-Branch Business Worth{% endblock %} {% block stylesheets %} {% endblock %} {% block heading %}Multi-Branch Business Worth{% endblock %} {% block content %}
{% for b in branches %}
{% endfor %}
Multi-Branch Business Worth — as of {{ as_of_date }}
{% for t in tenant_data %}
{{ t.name }}
Assets {{ t.total_assets|floatformat:2 }}
Liabilities {{ t.total_liabilities|floatformat:2 }}

Growth {{ t.growth|floatformat:2 }}
{% endfor %} {% if tenant_data|length > 1 %}
Combined
Assets {{ grand_total_assets|floatformat:2 }}
Liabilities {{ grand_total_liabilities|floatformat:2 }}

Growth {{ grand_growth|floatformat:2 }}
{% endif %}
1. Assets

Scroll horizontally to see all branches

{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for row in asset_rows %} {# Main row #} {% for cell in row.cells %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {# Expandable detail row #} {% endfor %} {% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %}
Head {{ t.name }} Grand Total
{{ row.key }} {{ cell|floatformat:2 }}{{ row.grand_total|floatformat:2 }}
{% for item in row.items %} {% empty %} {% endfor %}
Name Amount Branch
{{ item.label }} {{ item.amount|floatformat:2 }} {{ item.branch }}
No details
Total Assets{{ t.total_assets|floatformat:2 }}{{ grand_total_assets|floatformat:2 }}
2. Liabilities

Scroll horizontally to see all branches

{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for row in liability_rows %} {# Main row #} {% for cell in row.cells %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {# Expandable detail row #} {% endfor %} {% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %}
Head {{ t.name }} Grand Total
{{ row.key }} {{ cell|floatformat:2 }}{{ row.grand_total|floatformat:2 }}
{% for item in row.items %} {% empty %} {% endfor %}
Name Amount Branch
{{ item.label }} {{ item.amount|floatformat:2 }} {{ item.branch }}
No details
Total Liabilities{{ t.total_liabilities|floatformat:2 }}{{ grand_total_liabilities|floatformat:2 }}
3. Growth Summary
{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %}
Metric {{ t.name }} Grand Total
Total Assets{{ t.total_assets|floatformat:2 }}{{ grand_total_assets|floatformat:2 }}
Total Liabilities{{ t.total_liabilities|floatformat:2 }}{{ grand_total_liabilities|floatformat:2 }}
Growth (Assets − Liabilities) {{ t.growth|floatformat:2 }} {{ grand_growth|floatformat:2 }}
{% if has_comparison %}
4. Change: {{ compare_date }} → {{ as_of_date }}
{# ── Change in Assets ── #}
Change in Assets
{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for row in cmp_asset_rows %} {% for cell in row.cells %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% endfor %}
Head {{ t.name }} Δ Grand Δ
{{ row.key }} {{ cell|floatformat:2 }} {{ row.grand_delta|floatformat:2 }}
Change in Liabilities
{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for row in cmp_liability_rows %} {% for cell in row.cells %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% endfor %}
Head {{ t.name }} Δ Grand Δ
{{ row.key }} {{ cell|floatformat:2 }} {{ row.grand_delta|floatformat:2 }}
Growth Change Summary
{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for row in cmp_growth_rows %} {% for cell in row.cells %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% endfor %}
Metric {{ t.name }} Combined
{{ row.label }} {{ cell|floatformat:2 }} {{ row.grand|floatformat:2 }}
Δ Assets: {{ grand_cmp.delta_assets|floatformat:2 }}  |  Δ Liabilities: {{ grand_cmp.delta_liabilities|floatformat:2 }}  |  Δ Growth: {{ grand_cmp.delta_growth|floatformat:2 }}
{% endif %} {% if not tenant_data %}
No branches selected or no connected branches found. Please select at least one branch above.
{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}