{% extends "contracts/base.html" %}{% load rr %}{% block title %}Close {{ period }}{% endblock %} {% block content %}

Close — {{ period.month|date:"F Y" }} {{ period.get_status_display }}

{% if period.status != "locked" %}
{% csrf_token %}{% if period.status == "reviewed" %} {% endif %}
{% endif %} Export JE CSV
Revenue recognised{{ revenue|money }}
Invoiced{{ billed|money }}
Journal entries{{ entry_count }}
Debits = credits{{ debit|money }} / {{ credit|money }}

Trial balance movement

{% for acct, dc in totals.items %}{% endfor %}
AccountDebitCredit
{{ acct }}{{ dc.0|money }}{{ dc.1|money }}
Total{{ debit|money }}{{ credit|money }}

Largest contributors

{% for r in by_contract %}{% endfor %}
ContractRevenue
{{ r.contract__number }}{{ r.t|money }}

Journal entries {% if entry_count > 60 %}(first 60 of {{ entry_count }} — export CSV for all){% endif %}

{% for e in entries %}{% for l in e.lines.all %}{% endfor %}{% endfor %}
ContractEntryAccountDebitCredit
{% if forloop.first %}{{ e.contract.number }}{% endif %}{% if forloop.first %}{{ e.memo }}{% endif %}{{ l.account }}{% if l.debit %}{{ l.debit|money }}{% endif %}{% if l.credit %}{{ l.credit|money }}{% endif %}
{% endblock %}