{% extends "base.html" %} {% block title %}Pay Bill{% endblock %} {% block page_title %}Mark Bill Paid{% endblock %} {% block topbar_actions %} ← {{ bill.provider.name }} {% endblock %} {% block content %}
{{ bill.provider.name }}
{{ bill.period_label }}
{{ bill.amount | currency }}
{% if bill.due_date %}
Due {{ bill.due_date.strftime('%b %d, %Y') }}
{% endif %}
{% if bill.usage %}
Usage {{ '%.1f' | format(bill.usage | float) }} {{ bill.usage_unit or '' }} {% if bill.rate_per_unit %}· {{ current_user.currency_symbol }}{{ '%.4f' | format(bill.rate_per_unit) }} per {{ bill.usage_unit or 'unit' }}{% endif %}
{% endif %}

This records an expense transaction for the bill amount and links the two together. If the payment already came in through a bank sync, link the existing transaction instead to avoid a duplicate.

{{ form.hidden_tag() }}
{{ form.account_id.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.account_id(class="form-select" + (" is-invalid" if form.account_id.errors else "")) }} {% for e in form.account_id.errors %}
{{ e }}
{% endfor %}
{{ form.category_id.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.category_id(class="form-select") }}
{{ form.paid_date.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.paid_date(class="form-control") }}
{{ form.submit(class="btn btn-primary") }} Cancel
{% endblock %}