{% extends "base.html" %} {% load humanize %} {% load ledger %} {% block javascript %} {{ date_form.media|safe }} {% endblock %} {% block css %} {% endblock %} {% block title %}Account Ledger{% endblock %} {% block content %}

Profit and Loss Statement

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

Revenue

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

Expenses

{{ account.name }} {{ account.date_range_total|currency }}
{{ total_losses|currency }}
 
{{ net_income|currency }}
{% endblock %}