{% extends "base.html" %} {% comment %} The Mia Accounting Application report-journal.html: The template for the accounting journals 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/17 {% endcomment %} {% load static %} {% load i18n %} {% load mia_core %} {% load accounting %} {% block settings %} {% blocktrans asvar title with prep_period=request.resolver_match.kwargs.period.prep_desc %}Journal {{ 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-book" current_report_title=_("Journal") 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 %} {% if record_list %} {% include "mia_core/include/pagination.html" %} {# The table for large screens #} {% for record in record_list %} {% endfor %}
{{ _("Date")|force_escape }} {{ _("Account")|force_escape }} {{ _("Summary")|force_escape }} {{ _("Debit")|force_escape }} {{ _("Credit")|force_escape }} {{ _("Notes")|force_escape }} {{ _("View")|force_escape }}
{{ record.transaction.date|smart_date }} {{ record.account.title|title_case }}
{{ record.summary|default:"" }}{% if not record.is_balanced %} {{ _("Unbalanced")|force_escape }} {% endif %}{% if record.has_order_hole %} {{ _("Need Reorder")|force_escape }} {% endif %}
{{ record.debit_amount|accounting_amount }} {{ record.credit_amount|accounting_amount }} {{ record.transaction.note|default:"" }} {% if record.pk is not None %} {{ _("View")|force_escape }} {% endif %}
{# The list for small screens #} {% else %}

{{ _("There is currently no data.")|force_escape }}

{% endif %} {% endblock %}