{% extends "base.html" %} {% block header %} {# Show the setup name, as set in the config file, as page title. Don't escape HTML entities. #}

{{ setupname|safe }} Sales Statistics

{{ super() }} {% endblock %} {% block main %}

Time Range

{{fromdate}} {{todate}}

Totals

Purchases

{% for prod, data in consumptions.items() %} {% endfor %}
ProductIncomeUnits
{{ prod }}{{ -data[0]|chf }}{{ data[1] }}
Total{{ total_income|chf }}{{ total_consumption }}
{# Really hacky pie chart implementation. #} {% for s in product_slices %} {{ s[0] }} ({{ s[8] }}) {% endfor %}

Account Balances

{{ super() }} {% endblock %}