{% extends "assets/base.html" %}{% load assetreg_extras %} {% block title %}Run{% endblock %} {% block content %}

{{ run.get_book_display }}

{{ run.period_start|date:"d M Y" }} to {{ run.period_end|date:"d M Y" }} ({{ run.get_period_type_display }}) {{ run.get_status_display }}{% if run.locked %} / locked{% endif %}

{% if run.status == 'draft' %}
{% csrf_token %}
{% csrf_token %}
{% endif %}
{% if run.status == 'draft' %}
Preview only. Nothing is booked until you post. Posting creates the journal entry and locks the period.
{% endif %}
Opening{{ totals.opening|money }}
Charge{{ totals.charge|money }}
of which catch-up{{ totals.catchup|money }}
Closing{{ totals.closing|money }}
{% if journal %}

Journal entry

{{ journal.memo }} dated {{ journal.date|date:"d M Y" }}

{% for l in journal_lines %}{% endfor %}
AccountDescriptionDebitCredit
{{ l.account }}{{ l.description }}{% if l.debit %}{{ l.debit|money }}{% endif %}{% if l.credit %}{{ l.credit|money }}{% endif %}
{% endif %}

Lines

{% for l in lines %} {% empty %}{% endfor %}
{% if run.book == 'tax' %}Block{% else %}Asset{% endif %}MethodOpeningAdditionsChargeCatch-upClosing
{% if l.asset %}{{ l.asset.tag }} {{ l.asset.description }}{% else %}{{ l.block }}{% endif %}{{ l.method }}{{ l.opening_nbv|money }}{{ l.additions|money }}{{ l.charge|money }}{{ l.catchup|money }}{{ l.closing_nbv|money }}
No lines.
{% endblock %}