{% extends "base.html" %} {% load humanize %} {% load ledger %} {% block javascript %} {{ date_form.media|safe }} {% endblock %} {% block css %} {% endblock %} {% block title %}Balance Sheet{% if date %} as of {{ date|naturalday }}{% endif %}{% endblock %} {% block content %}

Balance Sheet{% if date %} as of {{ date|naturalday }}{% endif %}

{% include 'books/ledger/_date_filters.html' %}
{% for account in accounts %} {% endfor %}
{% for account in asset_accounts %} {% ifnotequal account.date_range_total 0 %} {% endifnotequal %} {% endfor %} {% for account in liability_accounts %} {% ifnotequal account.date_range_total 0 %} {% endifnotequal %} {% endfor %}

Assets

{{ account.name }} {{ account.date_range_total|currency }}
{{ total_assets|currency }}

Liabilities

{{ account.name }} {{ account.date_range_total|currency }}
{{ total_liabilities|currency }}
 
{{ owners_equity|currency }}
{{ liabilities_and_owners_equity|currency }}
{% endblock %}