{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Accounting" %}{% endblock %} {% block content %}

{% translate "Accounting" %}

{{ first|date:"F Y" }}. {% translate "The call center’s book of money received, money spent and money credited to the bank. Only administrators can see it." %}

{% translate "Previous" %} {% if next_month %}{% translate "Next" %}{% endif %} {% translate "Monthly report" %}
{% if needs_opening %}
{% translate "Start by entering what each account holds on the day the book begins." %} {% translate "Set the opening balances" %}
{% endif %}
{% translate "Record a collection" %} {% translate "Record an expense" %} {% translate "Record money credited to the bank" %}
{% for label, amount in balance_rows %}
{{ amount|tzs }}{{ label }}
{% endfor %}
{{ balance_total|tzs }}{% if is_current %}{% translate "Total held today" %}{% else %}{% blocktranslate trimmed with day=as_of|date:"j M" %}Total held on {{ day }}{% endblocktranslate %}{% endif %}

{% blocktranslate trimmed with c=totals.total_collected|tzs e=totals.total_spent|tzs b=totals.banked_total|tzs %}This month: collections {{ c }}, expenses {{ e }}, credited to the bank {{ b }}.{% endblocktranslate %}

{% translate "All" %} {% translate "Collections" %}{{ counts.collection }} {% translate "Expenses" %}{{ counts.expense }} {% translate "Credited to bank" %}{{ counts.banked }}
{% if entries %}
{% for e in entries %} {% endfor %}
{% translate "Date" %}{% translate "What" %}{% translate "Account" %}{% translate "From or to" %}{% translate "Reference" %}{% translate "Amount" %}{% translate "Recorded by" %}{% translate "Correct" %}
{{ e.on|date:"j M" }} {{ e.what }}
{{ e.account_label }}{% if e.kind == "banked" %} → {% translate "Bank" %}{% endif %}{% if e.party %} · {{ e.party }}{% endif %}{% if not e.is_cancelled %} · {% translate "Correct" %}{% endif %}
{% if e.note %}
{{ e.note }}
{% endif %}{% if e.is_cancelled %}
{% translate "Cancelled" %} {{ e.cancel_reason }}
{% endif %}
{{ e.account_label }}{% if e.kind == "banked" %} → {% translate "Bank" %}{% endif %} {{ e.party }} {{ e.reference }} {% if e.kind == "expense" %}−{% elif e.kind == "collection" %}+{% elif e.kind == "banked" %}⇄ {% endif %}{{ e.amount|tzs }} {{ e.recorded_by.display_name|default:"—" }} {% if not e.is_cancelled %}{% translate "Correct" %}{% endif %}
{% else %}
{% blocktranslate trimmed with month=first|date:"F Y" %}Nothing recorded for {{ month }}.{% endblocktranslate %}{% translate "Record each collection, expense and bank deposit as it happens, or from the receipts and statements at the end of the week." %}
{% endif %} {% endblock %}