{# The Mia! Accounting Flask Project income-expenses.html: The income and expenses Copyright (c) 2023 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: 2023/3/5 #} {% extends "accounting/base.html" %} {% block accounting_scripts %} {% endblock %} {% block header %}{% block title %}{{ _("Income and Expenses of %(account)s in %(currency)s %(period)s", currency=report.currency.name|title, account=report.account|title, period=report.period.desc|title) }}{% endblock %}{% endblock %} {% block content %}
{% if accounting_can_edit() %}
{% endif %} {% with report_chooser = report.report_chooser %} {% include "accounting/report/include/report-chooser.html" %} {% endwith %}
{{ A_("Download") }}
{% with txn_types = report.txn_types %} {% include "accounting/include/add-txn-material-fab.html" %} {% endwith %}
{% with report_chooser = report.report_chooser %} {% include "accounting/report/include/report-chooser.html" %} {% endwith %}
{% with period = report.period, period_chooser = report.period_chooser %} {% include "accounting/report/include/period-chooser.html" %} {% endwith %} {% if list %} {% include "accounting/include/pagination.html" %}
{{ A_("Date") }}
{{ A_("Account") }}
{{ A_("Summary") }}
{{ A_("Income") }}
{{ A_("Expense") }}
{{ A_("Balance") }}
{% for item in list %} {% if item.transaction %}
{{ item.date|accounting_format_date }}
{{ item.account.title|title }}
{{ item.summary|accounting_default }}
{{ item.income|accounting_format_amount|accounting_default }}
{{ item.expense|accounting_format_amount|accounting_default }}
{{ item.balance|accounting_format_amount }}
{% else %}
{{ item.date|accounting_format_date }}
{{ item.account.title|title }}
{{ item.summary|accounting_default }}
{{ item.income|accounting_format_amount|accounting_default }}
{{ item.expense|accounting_format_amount|accounting_default }}
{{ item.balance|accounting_format_amount }}
{% endif %} {% endfor %}
{% if report.total_row is not none %} {% endif %}
{% for item in list %} {% if item.transaction is not none %} {% include "accounting/report/include/income-expenses-mobile-row.html" %} {% else %}
{% include "accounting/report/include/income-expenses-mobile-row.html" %}
{% endif %} {% endfor %} {% if report.total_row is not none %} {% with item = report.total_row %}
{% include "accounting/report/include/income-expenses-mobile-row.html" %}
{% endwith %} {% endif %}
{% else %}

{{ A_("There is no data.") }}

{% endif %} {% endblock %}