{# DrCr: Web-based double-entry bookkeeping framework Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #} {% extends 'base.html' %} {% block title %}{{ report.title }}{% endblock %} {% macro render_section(section) %} {% if section.title %} {{ section.title }} {% endif %} {% for entry in section.entries %} {{ render_entry(entry) }} {% endfor %} {% endmacro %} {% macro render_entry(entry) %} {% if entry.visible %} {% if entry.__class__.__name__ == 'Section' %} {{ render_section(entry) }} {% elif entry.__class__.__name__ == 'Subtotal' %} {{ entry.text }} {{ entry.amount.format_accounting() }} {% elif entry.__class__.__name__ == 'Spacer' %}   {% else %} {% if entry.heading %}{% else %}{% endif %} {% if entry.link %} {{ entry.text }} {% else %} {{ entry.text }} {% endif %} {% if entry.heading %}{% else %}{% endif %} {{ entry.amount.format_accounting() }} {% endif %} {% endif %} {% endmacro %} {% block content %}

{{ report.title }}

{% for entry in report.entries %} {{ render_entry(entry) }} {% endfor %}
{{ reporting_commodity }} 
{% endblock %}