{% set view = extension.view() %} {% set config = view.analysis.config %}
Transfers between institutions are booked twice, once on each side, against
{{ config.transit_account }}. The two legs are paired when they
are opposite, in the same currency and no more than {{ view.days }} days
apart; what is left over is either a leg whose counterpart has not been
imported yet, or a transfer that skipped the transit account altogether.
A time filter is active, so the diagram and the tables below only show {{ view.begin or "the beginning" }} to {{ view.end or "the end" }}. Pairing itself always runs over the whole ledger, otherwise a transfer straddling the edge of the period would look unmatched.
{% endif %}On the left, the institution the money left; on the right, the one it reached. An institution appears on both sides when it both sends and receives, and a ribbon from a name back to itself is a transfer between two of its own accounts.
Every posting on {{ config.transit_account }} has its counterpart.
{% else %}| Date | Amount | Institution | Description | Source |
|---|---|---|---|---|
| {{ posting.date }} | {{ posting.amount|format_currency(posting.currency) }} {{ posting.currency }} |
{{ posting.institution or "—" }}
{{ "sent, never arrived" if posting.outgoing else "arrived, never sent" }}
|
{{ posting.description }} | {{ view.relpath(posting.filename) }}:{{ posting.lineno }} |
No transfer between institutions was booked directly.
{% else %}| Date | Amount | Accounts | Description | Source |
|---|---|---|---|---|
| {{ transfer.date }} | {% if transfer.amount is not none %} {{ transfer.amount|format_currency(transfer.currency) }} {{ transfer.currency }} {% else %}—{% endif %} | {{ transfer.accounts|join(" ↔ ") }} | {{ transfer.description }} | {{ view.relpath(transfer.filename) }}:{{ transfer.lineno }} |