{% extends "base.html" %} {% comment %} The Mia Accounting Application account_detail.html: The template for the account detail 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/8/8 {% endcomment %} {% load static %} {% load i18n %} {% load mia_core %} {% load accounting %} {% block settings %} {% setvar "title" account %} {% endblock %} {% block content %} {% if account.is_parent_and_in_use %}
{{ _("Error:")|force_escape }} {{ _("The account is a parent account but is also used in the accounting records.")|force_escape }}
{% endif %}
{% csrf_token %}
{{ _("Back")|force_escape }} {{ _("Settings")|force_escape }} {% if not account.is_in_use %} {% else %} {{ _("Ledger")|force_escape }} {% endif %}
{% if account.is_in_use %} {% else %} {% endif %}
{{ _("Parent Account:")|force_escape }}
{% if account.parent %} {{ account.parent }} {% else %} {{ _("Topmost")|force_escape }} {% endif %}
{{ _("Code:")|force_escape }}
{{ account.code }}
{{ _("Title:")|force_escape }}
{{ account.title }}
{{ _("Child Accounts:")|force_escape }}
{% for child in account.child_set.all %} {{ child }} {% empty %} {{ _("This account is an end-point account.")|force_escape }} {% endfor %}
{{ _("Created at:")|force_escape }}
{{ account.created_at }}
{{ _("Created by:")|force_escape }}
{{ account.created_by }}
{{ _("Updated at:")|force_escape }}
{{ account.updated_at }}
{{ _("Updated by:")|force_escape }}
{{ account.updated_by }}
{% endblock %}