{% extends "core/base.html" %} {% block title %}Payment run {{ run.pk }}{% endblock %} {% block content %}

Payment run #{{ run.pk }} {{ run.get_status_display }}

Payment date {{ run.run_date }}, invoices due by {{ run.cutoff_date }}. Total {{ total|floatformat:2 }}.

Download bank payment file (CSV) {% if run.status != "paid" %}
{% csrf_token %}
{% endif %} {% for b in batches %}

{{ b.vendor.name }} {{ b.currency }} {{ b.total|floatformat:2 }}{% if b.vendor.current_bank %} to {{ b.vendor.current_bank.account_no }}{% endif %}

{% for p in b.payables %}{% endfor %}
{{ p.invoice.invoice_no }}{{ p.invoice.total }}{% if p.discount %}discount {{ p.discount }}{% endif %}{{ p.amount }}
{% endfor %} {% endblock %}