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

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

Growth {{ grand_growth|floatformat:0 }}
{% endif %}
1. Assets Inventory = Reverse FIFO

Scroll horizontally for all branches

{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for row in asset_rows %} {% for cell in row.cells %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% endfor %} {% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %}
Head {{ t.name }} Grand Total
{{ row.key }} {{ cell|floatformat:0 }} {{ row.grand_total|floatformat:0 }}
{% 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:0 }}{{ grand_total_assets|floatformat:0 }}
2. Liabilities

Scroll horizontally for all branches

{% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% for row in liability_rows %} {% for cell in row.cells %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %} {% endfor %} {% for t in tenant_data %} {% endfor %} {% if tenant_data|length > 1 %} {% endif %}
Head {{ t.name }} Grand Total
{{ row.key }} {{ cell|floatformat:0 }}{{ row.grand_total|floatformat:0 }}
{% for item in row.items %} {% empty %} {% endfor %}
NameAmountBranch
{{ item.label }} {{ item.amount|floatformat:2 }} {{ item.branch }}
No details
Total Liabilities{{ t.total_liabilities|floatformat:0 }}{{ grand_total_liabilities|floatformat:0 }}
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:0 }}{{ grand_total_assets|floatformat:0 }}
Total Liabilities{{ t.total_liabilities|floatformat:0 }}{{ grand_total_liabilities|floatformat:0 }}
Growth (Assets − Liabilities) {{ t.growth|floatformat:0 }} {{ grand_growth|floatformat:0 }}
{% if has_comparison %}
4. Change: {{ compare_date }} → {{ as_of_date }}
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 }} {% if cell > 0 %}+{% endif %}{{ cell|floatformat:0 }} {% if row.grand_delta > 0 %}+{% endif %}{{ row.grand_delta|floatformat:0 }}
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 }} {% if cell > 0 %}+{% endif %}{{ cell|floatformat:0 }} {% if row.grand_delta > 0 %}+{% endif %}{{ row.grand_delta|floatformat:0 }}
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 }} {% if cell > 0 %}+{% endif %}{{ cell|floatformat:0 }} {% if row.grand > 0 %}+{% endif %}{{ row.grand|floatformat:0 }}
Δ Assets
{% if grand_cmp.delta_assets > 0 %}+{% endif %}{{ grand_cmp.delta_assets|floatformat:0 }}
Δ Liabilities
{% if grand_cmp.delta_liabilities > 0 %}+{% endif %}{{ grand_cmp.delta_liabilities|floatformat:0 }}
Δ Growth
{% if grand_cmp.delta_growth > 0 %}+{% endif %}{{ grand_cmp.delta_growth|floatformat:0 }}
{% endif %} {% if not tenant_data %}
No branches selected. Please select at least one branch above.
{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}