{% extends 'base.html' %} {% load i18n %} {% block title %}{{ page_title }}{% endblock %} {% block content %}

{{ _("Account Name") }}: {{ account.name }}

{{ _("Account Code") }}: {{ account.code }}

{% if account.balance_type == 'debit' %} {{ _("Balance Type") }}:

{{ _("Debit") }}
{% else %} {{ _("Balance Type") }}:
{{ _("Credit") }}
{% endif %}

{{ _("Active") }}: {{ account.active }}

{% for tx in account.transactionmodel_set.all %} {% endfor %}
{{ _("JE Number") }} {{ _("Date") }} {{ _("Debit") }} {{ _("Credit") }} {{ _("Description") }} {{ _("Actions") }}
{{ tx.journal_entry.je_number }} {{ tx.journal_entry.timestamp }} {% if tx.tx_type == 'debit' %} {{ tx.amount }}{% endif %} {% if tx.tx_type == 'credit' %} {{ tx.amount }}{% endif %} {% if tx.description %}{{ tx.description }}{% endif %} {% if perms.django_ledger.view_transactionmodel %} {% endif %}
{{ _("Total") }} {{ total_debits }} {{ total_credits }}
{% if perms.django_ledger.change_chartofaccountmodel %} {{ _("Edit") }} {% endif %} {% if perms.django_ledger.delete_chartofaccountmodel %} {{ _("Delete") }} {% endif %} {% trans 'Back to COA List' %}
{% endblock %}