{% extends 'base.html' %} {% block main_title %} Accounts {% endblock %} {% block content %} {% if not accounts_chart %} {% else %} {% if not accounts_chart.accounts %} {% if accounts_chart.accounts_csv_file_error %} {%endif%} No accounts found. Refer to pome's doc for example accounts charts. {%endif%}
New Transaction
{% if not accounts_chart.are_all_accounts_used() %}
{% endif %} {% for section_prefix in accounts_chart.section_prefixes_map %} {% set accounts_of_section = accounts_chart.section_account_code_map[section_prefix] %} {% set account_level = accounts_chart.prefix_level(section_prefix) %}
{% set title_size = "text-base" %} {% set text_size = "text-base" %} {% set title_mb = "mb-0" %} {% if account_level == 0 %} {% set title_size = "text-2xl" %} {% set text_size = "text-xl" %} {% set title_mb = "mb-2" %} {% endif %} {% if account_level == 1 %} {% set title_size = "text-xl" %} {% set text_size = "text-xl" %} {% set title_mb = "mb-1" %} {% endif %}

{{section_prefix}} - {{accounts_chart.section_prefixes_map[section_prefix].name}}

{% if accounts_of_section%}
{% for account_code in accounts_of_section %} {% set acc = accounts_chart.account_codes[account_code]%} {% endfor %}
Code Name Balance
{%endif%}
{% endfor %} {% endif %} {% endblock %}