{% extends "base.html" %} {% block title %}Link Payment{% endblock %} {% block page_title %}Link Existing Payment{% endblock %} {% block topbar_actions %} ← {{ bill.provider.name }} {% endblock %} {% block content %}
{{ bill.provider.name }}
{{ bill.period_label }}{% if bill.due_date %} · due {{ bill.due_date.strftime('%b %d, %Y') }}{% endif %}
{{ bill.amount | currency }}
Candidate Transactions
Expenses within 45 days of the due date, closest amount first. Transactions already linked to another bill are hidden.
{% if candidates %}
{% for t in candidates %} {% set diff = (t.amount | float) - (bill.amount | float) %} {% endfor %}
Date Description Account Category Amount Δ
{{ t.date.strftime('%b %d, %Y') }} {{ t.description | truncate(48) }} {{ t.account.name if t.account else '—' }} {{ t.category.name if t.category else '—' }} {{ t.amount | currency }} {% if diff == 0 %}exact{% else %}{{ '+' if diff > 0 else '' }}{{ '%.2f' | format(diff) }}{% endif %}
Create New Transaction Instead Cancel
{% else %}
No matching transactions

Nothing unlinked was found near this bill's due date.

Create a Payment Transaction
{% endif %}
{% endblock %}