{% extends "core/base.html" %} {% block title %}Payments{% endblock %} {% block content %}

Payment proposal

{% for f in form %}{% endfor %}
{% if batches is not None %}

Proposed: {{ proposal_total|floatformat:2 }} across {{ batches|length }} vendor payment(s)

{% for b in batches %}

{{ b.vendor.name }} {{ b.currency }} {{ b.total|floatformat:2 }}{% if b.discount %}, discount {{ b.discount|floatformat:2 }}{% endif %}

{% for p in b.payables %}{% endfor %}
{{ p.invoice.invoice_no }}due {{ p.invoice.due_date }}{{ p.invoice.total }}{% if p.discount %}-{{ p.discount }}{% endif %}{{ p.amount }}
{% empty %}

Nothing is payable for these dates.

{% endfor %} {% if batches %}
{% csrf_token %}{% for f in form %}{% endfor %}
{% endif %}

Held back ({{ held|length }})

{% for inv, reason in held %}{% empty %}{% endfor %}
{{ inv.invoice_no }}{{ inv.vendor.name }}{{ inv.total }}{{ reason }}
No holds.
{% endif %}

Payment runs

{% for r in runs %}{% empty %}{% endfor %}
RunPayment dateCutoffStatusInvoicesAmount
#{{ r.pk }}{{ r.run_date }}{{ r.cutoff_date }}{{ r.get_status_display }}{{ r.n }}{{ r.amount|default:0|floatformat:2 }}
No runs yet.
{% endblock %}