{% extends "base.html" %} {% block title %}Alberich: a statement{% endblock %} {% block body %}

← The Ledgers

{{ acct.name if acct else st.original_name }}

{{ chip[st.status][1] }} {% if st.period_end %} {{ st.period_start }} to {{ st.period_end }}{% endif %}

{% if st.note %}
{{ st.note }}
{% endif %} {% if st.status == 'pending_template' or st.status == 'failed' %}

Teach Alberich this layout

He will draft a reading of the file and show you a preview before anything is filed.

{% if st.kind != 'ofx' %}Set up the template{% endif %}
{% endif %} {% if st.status == 'pending_account' or st.status == 'needs_review' %}

{{ 'Which account is this?' if st.status == 'pending_account' else 'Belongs to another account?' }}

{% if not cands %}Add an account first{% endif %}
{% endif %} {% if st.status == 'needs_review' %}

Accept it as it is

If the difference is explained (a fee the bank confirmed, a statement you know is missing), accept it and say why. The reason is kept with the statement.

{% endif %} {% if txns %}

{{ txns|length }} lines

{% if st.opening_cents is not none and st.closing_cents is not none %}{{ 'Owing' if liability else 'Balance' }} {{ money(st.opening_cents) }}{{ ' (worked out)' if st.opening_derived }} to {{ money(st.closing_cents) }}{% endif %}
{% for t in txns %}{% endfor %}
DateDescriptionAmount
{{ t.posted_date }}{{ t.description_raw }}{{ money(-t.amount_cents) if t.amount_cents < 0 else money(t.amount_cents) }}{% if t.amount_cents < 0 %} in{% endif %}
{% endif %}
File details and actions

{{ st.original_name }} · {{ st.kind|upper }} · received {{ st.received_at }}{% if tmpl %} · layout "{{ tmpl.name }}" v{{ st.template_version }}{% endif %}

{% if st.kind != 'ofx' %}Edit the layout{% endif %}
{% endblock %}