{% if spending_rows %}<divclass="table-wrap"><table><thead><tr><th>Category</th><thclass="number">Expense</th><thclass="number">Refund</th><thclass="number">Net spending</th></tr></thead><tbody>
{% if spending_rows %}<divclass="table-wrap"><table><thead><tr><th>Category</th><thclass="number">Expense</th><thclass="number">Refund</th><thclass="number">Net spending</th></tr></thead><tbody>
{% for row in spending_rows %}<tr><td>{{ row.category_name }}</td><tdclass="number">{{ row.expense|floatformat:"2g" }}</td><tdclass="number">{{ row.refund|floatformat:"2g" }}</td><tdclass="number">{{ row.net_spending|floatformat:"2g" }} {{ summary.currency }}</td></tr>{% endfor %}
{% for row in spending_rows %}<tr>{% if row.is_group_total %}<th>{{ row.category_name }}</th>{% else %}<td>{% if row.group_name %}↳ {% endif %}{{ row.category_name }}</td>{% endif %}<tdclass="number">{{ row.expense|floatformat:"2g" }}</td><tdclass="number">{{ row.refund|floatformat:"2g" }}</td><tdclass="number">{{ row.net_spending|floatformat:"2g" }} {{ summary.currency }}</td></tr>{% endfor %}
</tbody></table></div>{% else %}<p>No spending activity for this month.</p>{% endif %}
</tbody></table></div>{% else %}<p>No spending activity for this month.</p>{% endif %}
<h2>Account balances</h2>
<h2>Account balances</h2>
{% if balances %}<divclass="table-wrap"><table><thead><tr><th>Account</th><thclass="number">Balance</th></tr></thead><tbody>
{% if balances %}<divclass="table-wrap"><table><thead><tr><th>Account</th><thclass="number">Balance</th></tr></thead><tbody>
{% if spending_rows %}<divclass="table-wrap"><table><thead><tr><th>Category</th><thclass="number">Expense</th><thclass="number">Refund</th><thclass="number">Net spending</th></tr></thead><tbody>
{% if spending_rows %}<divclass="table-wrap"><table><thead><tr><th>Category</th><thclass="number">Expense</th><thclass="number">Refund</th><thclass="number">Net spending</th></tr></thead><tbody>
{% for row in spending_rows %}<tr><td>{{ row.category_name }}</td><tdclass="number">{{ row.expense|floatformat:"2g" }}</td><tdclass="number">{{ row.refund|floatformat:"2g" }}</td><tdclass="number">{{ row.net_spending|floatformat:"2g" }} {{ summary.currency }}</td></tr>{% endfor %}
{% for row in spending_rows %}<tr>{% if row.is_group_total %}<th>{{ row.category_name }}</th>{% else %}<td>{% if row.group_name %}↳ {% endif %}{{ row.category_name }}</td>{% endif %}<tdclass="number">{{ row.expense|floatformat:"2g" }}</td><tdclass="number">{{ row.refund|floatformat:"2g" }}</td><tdclass="number">{{ row.net_spending|floatformat:"2g" }} {{ summary.currency }}</td></tr>{% endfor %}
</tbody></table></div>{% else %}<p>No spending activity for this month.</p>{% endif %}
</tbody></table></div>{% else %}<p>No spending activity for this month.</p>{% endif %}
<h2>Account balances</h2>
<h2>Account balances</h2>
{% if balances %}<divclass="table-wrap"><table><thead><tr><th>Account</th><thclass="number">Balance</th></tr></thead><tbody>
{% if balances %}<divclass="table-wrap"><table><thead><tr><th>Account</th><thclass="number">Balance</th></tr></thead><tbody>