{% extends "base.html" %} {% comment %} The Mia Accounting Application report-income-statement.html: The template for the income statements Copyright (c) 2020 imacat. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Author: imacat@mail.imacat.idv.tw (imacat) First written: 2020/7/19 {% endcomment %} {% load static %} {% load i18n %} {% load humanize %} {% load mia_core %} {% load accounting %} {% block settings %} {% blocktrans asvar title with prep_period=request.resolver_match.kwargs.period.prep_desc %}Income Statement {{ prep_period }}{% endblocktrans %} {% setvar "title" title %} {% setvar "use_period_chooser" True %} {% static "accounting/css/report.css" as file %}{% add_css file %} {% endblock %} {% block content %}
{% with current_report_icon="fas fa-file-invoice" current_report_title=_("Income Statement") period=request.resolver_match.kwargs.period %} {% include "accounting/include/report-chooser.html" %} {% endwith %}
{% with period=request.resolver_match.kwargs.period %} {% include "mia_core/include/period-chooser.html" %} {% endwith %} {# The table for large screens #}

{{ title|title_case }}

{% for section in section_list %} {% if section.groups %} {% for group in section.groups %} {% for account in group.details %} {% endfor %} {% endfor %} {% else %} {% endif %} {% if section.cumulative_total is not None %} {% endif %} {% if section.has_next %} {% endif %} {% endfor %}
{{ _("Amount")|force_escape }}
{{ section.title|title_case }}
{{ group.title|title_case }}
{{ account.amount|accounting_amount }} {{ _("View")|force_escape }}
{{ _("Total")|force_escape }}
{{ group.amount|accounting_amount }}
{{ _("Total")|force_escape }}
-
{{ section.cumulative_total.title|title_case }}
{{ section.cumulative_total.amount|accounting_amount }}
{# The list for small screens #}

{{ title }}

    {% for section in section_list %}
  • {{ section.title|title_case }}
  • {% if section.groups %} {% for group in section.groups %}
  • {{ group.title|title_case }}
  • {% for account in group.details %} {% endfor %}
  • {{ _("Total")|force_escape }}
    {{ group.amount|accounting_amount }}
  • {% endfor %} {% else %}
  • {{ _("Total")|force_escape }}
    -
  • {% endif %} {% if section.cumulative_total is not None %}
  • {{ section.cumulative_total.title|title_case }}
    {{ section.cumulative_total.amount|accounting_amount }}
  • {% endif %} {% if section.has_next %}
  • {% endif %} {% endfor %}
{% endblock %}