{% extends 'extends/offcanvas.html' %} {% load currency_display %} {% load i18n %} {% load crispy_forms_tags %} {% block title %}{% translate 'Account Reconciliation' %}{% endblock %} {% block body %}
{% csrf_token %} {{ form.management_form }} {# Picking a cutoff shows its field and re-fetches only the accounts list, with balances computed against it #}
{% for value, label in cutoff.fields.mode.choices %} {% endfor %}
{{ cutoff.date|as_crispy_field }}
{{ cutoff.month|as_crispy_field }}
{# Swapped rows bring fresh selects; the offcanvas only initializes TomSelect on first load #}
{% for form in form.forms %} {% if form.account_group %}{{ form.account_group.name }}{% endif %}{{ form.account_name }}
{% translate 'Current balance' %}
{% crispy form %}
{% translate 'Difference' %}
-
{% endfor %}
{% endblock %}