{% if used_term_default %}
Using current term by default:
{{ start_date }} to {{ end_date }}.
Included rows: {{ income_tx|length }} inflow(s), {{ expense_tx|length }} outflow(s).
{% else %}
Showing cash flow from {{ start_date }} to {{ end_date }}.
Included rows: {{ income_tx|length }} inflow(s), {{ expense_tx|length }} outflow(s).
{% endif %}
Sample inflows (first {{ sample_income|length }}):
{% if sample_income %}
{% for t in sample_income %}
-
{{ t.date|date:"Y-m-d" }}
{{ t.description }}
UGX {{ t.amount|floatformat:0|intcomma }}
{% endfor %}
{% else %}
No inflows in range.
{% endif %}
Sample outflows (first {{ sample_expense|length }}):
{% if sample_expense %}
{% for t in sample_expense %}
-
{{ t.date|date:"Y-m-d" }}
{{ t.description }}
UGX {{ t.amount|floatformat:0|intcomma }}
{% endfor %}
{% else %}
No outflows in range.
{% endif %}
Total Inflows
UGX {{ total_income|floatformat:0|intcomma }}
Total Outflows
UGX {{ total_expenses|floatformat:0|intcomma }}
Net Cash Flow
UGX {{ net_cash_flow|floatformat:0|intcomma }}
Daily Net Flow
{% if daily_flow %}
| Date |
Net (UGX) |
Status |
{% for row in daily_flow %}
| {{ row.date|date:"Y-m-d" }} |
UGX {{ row.net|floatformat:0|intcomma }} |
{% if row.net >= 0 %}
Positive
{% else %}
Negative
{% endif %}
|
{% endfor %}
{% else %}
No daily flow data available for the selected period.
{% endif %}
Inflows (Income)
{% if income_tx %}
| Date |
Description |
Amount (UGX) |
{% for t in income_tx %}
| {{ t.date|date:"Y-m-d" }} |
{{ t.description }} |
UGX {{ t.amount|floatformat:0|intcomma }} |
{% endfor %}
{% else %}
No inflow transactions found.
{% endif %}
Outflows (Expenses)
{% if expense_tx %}
| Date |
Description |
Amount (UGX) |
{% for t in expense_tx %}
| {{ t.date|date:"Y-m-d" }} |
{{ t.description }} |
UGX {{ t.amount|floatformat:0|intcomma }} |
{% endfor %}
{% else %}
No outflow transactions found.
{% endif %}