{% extends "admin_index.html" %} {% block title %}manual match{% endblock %} {% block admin_content %} {% for t in transfers_unmatched %} {% set matchability = t.get_matchability()[0] %} {% set extra = t.get_matchability()[1] %} {% if matchability > 0 %}

{{t.title}} ({{t.amount/100}} PLN; from: {{ t.name_from }} / {{ t.account_from }}) × {% if matchability == 1 %} unknown type {% elif matchability == 2 %} unknown member {% elif matchability == 3 %} unparseable {% elif matchability == 4 %} matched by account/name {% endif %}

{% if matchability == 1 %} {% set fattycount = t.amount/(config['MEMBERSHIP_FEES']['fatty'] * 100) %} {% set starvingcount = t.amount/(config['MEMBERSHIP_FEES']['starving'] * 100) %}
This is a one-time payment. This is a {{fattycount|int}}-time payment. (fatty) This is a {{starvingcount|int}}-time payment. (starving) This is a N-time payment. (superfatty?)
{% if extra.transfers %} {% for member_transfer in extra.transfers[:3] %} {% endfor %}
Previous transfers
{{ member_transfer.transfer.title }} for {{ member_transfer.transfer.amount/100 }}
{% endif %} {% elif matchability == 2 %}
Add member {{extra}} - starving Add member {{extra}} - fatty Add member {{extra}} - supporting
{% elif matchability == 3 %}
{% elif matchability == 4 %}
{% endif %} {% set similar = t.get_similar().limit(3).all() %} {% if similar %} {% for t in similar %} {% endfor %}
Similar transfers From Matches
{{ t.title }} {{ t.name_from }} ({{ t.account_from }}) {% for mt in t.member_transfers %} {{ mt.year }}/{{mt.month}} - {{ mt.member }}
{% endfor %}
{% endif %}
{% endif %} {% endfor %} {% endblock %}