{%extends "accounting/accounting_base.html"%} {%load humanize%} {%block title%}Accounting{%endblock%} {%block layoutblock%}
{%if year.isopen%}
{%endif%} {%if searchterm%}

Search results for {{searchterm}}. Reset.

{%endif%} {%for e in entries %} {%ifchanged e.closed%} {%if not forloop.first%}{%endif%} {{e.closed|yesno:"Closed,Open"}} {%endif%} {%endfor%} {%if numpages > 1 %}
{{numpages}} pages
{%for p in pages%}{{p}} {%endfor%}
{%endif%} {%if year.isopen and not hasopen %} Close year {%endif%}
{%if entry %} {%if entry.closed%}

Entry {{entry}}

{%for i in items%} {%endfor%} {%for t in totals%}{%endfor%}
Account Object Description Debit Credit
{{i.account}} {{i.object|default:""}} {{i.description}} {{i.debit}} {{i.credit}}
{%if urls %}

Associated URLs

{%endif%} {%else%}

Edit entry {{entry}}

{%if has_pending_banktrans %}

This entry has a pending bank transaction!

There is a pending bank transaction registered for this accounting entry. That means it will be automatically closed once the matching transaction appears on the bank account! The entry should normally be left unchanged until this matching closes it automatically.

{%endif%}
{% csrf_token %} {%if form.errors%}

Please correct the errors below, and re-submit the form.

{%endif%}
Date: {{form.date}}
{%if form.non_field_errors%}{{form.non_field_errors}}{%endif%} {{formset.management_form }} {%if formset.non_form_errors%}{{formset.non_form_errors}}{%endif%} {%for form in formset.forms%} {%if forloop.first%} {%for field in form.visible_fields%} {%endfor%} {%endif%} {%if form.non_field_errors%} {%endif%} {%endfor%}
{{field.label|capfirst}}
{{form.non_field_errors}}
{{form.id}}{{form.account.errors}} {{form.account}} {{form.object.errors}} {{form.object}} {{form.description.errors}} {{form.description}} {{form.debit.errors}} {{form.debit}} {{form.credit.errors}} {{form.credit}} {{form.DELETE.errors}} {{form.DELETE}}
Total {{totals.0}} {{totals.1}}
Press % in an amount input box to automatically balance!

Linked URLs

{{urlformset.management_form }} {%if urlformset.non_form_errors%}{{urlformset.non_form_errors}}{%endif%} {%for form in urlformset.forms%} {{form.id}}
{%for field in form.visible_fields%} {{field.errors}}{{field}} {%endfor%} Delete
{%if form.visible_fields.0.value%}Preview: {{form.visible_fields.0.value|urlize}}

{%endif%}
{%endfor%}

{%if has_pending_banktrans %}

There is a pending bank transaction registered for this accounting entry. That means it will be automatically closed once the matching transaction appears on the bank account! The entry should normally be left unchanged until this matching closes it automatically.

{%endif%}
{%endif%} {%else%}

Entry

Pick a journal entry from the list on the left!

{%endif%}
{%endblock%}