{# The Mia! Accounting Project unmatched.html: The unmatched offsets 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/4/17 #} {% extends "accounting/base.html" %} {% block accounting_scripts %} {% endblock %} {% block header %}{% block title %}{% if report.currency.code == accounting_default_currency_code() %}{{ A_("Unmatched Offsets of %(account)s", account=report.account.title|title) }}{% else %}{{ A_("Unmatched Offsets of %(account)s in %(currency)s", currency=report.currency.name|title, account=report.account.title|title) }}{% endif %}{% endblock %}{% endblock %} {% block content %}
{% with use_currency_chooser = true, use_account_chooser = true %} {% include "accounting/report/include/toolbar-buttons.html" %} {% endwith %}
{% include "accounting/report/include/add-journal-entry-material-fab.html" %} {% include "accounting/report/include/search-modal.html" %} {% if report.matched_pairs %}
{% endif %}

{{ report.match_status }}

{% if report.has_data %} {% with pagination = report.pagination %} {% include "accounting/include/pagination.html" %} {% endwith %}
{{ A_("Date") }}
{{ A_("Description") }}
{{ A_("Debit") }}
{{ A_("Credit") }}
{{ A_("Balance") }}
{% for line_item in report.line_items %}
{{ line_item.journal_entry.date|accounting_format_date }}
{{ line_item.description|accounting_default }} {% if line_item.match %}
{{ A_("Can match %(item)s", item=line_item.match) }}
{% endif %}
{{ line_item.debit|accounting_format_amount|accounting_default }}
{{ line_item.credit|accounting_format_amount|accounting_default }}
{{ line_item.balance|accounting_report_format_amount }}
{% endfor %}
{% for line_item in report.line_items %}
{{ line_item.journal_entry.date|accounting_format_date }}
{% if line_item.description is not none %}
{{ line_item.description }}
{% endif %}
{% if line_item.debit %} +{{ line_item.debit|accounting_format_amount }} {% endif %} {% if line_item.credit %} -{{ line_item.credit|accounting_format_amount }} {% endif %} {% if line_item.balance < 0 %} {{ line_item.balance|accounting_format_amount }} {% else %} {{ line_item.balance|accounting_format_amount }} {% endif %}
{% endfor %}
{% else %}

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

{% endif %} {% endblock %}