{% extends "portal/_layout.html" %} {% block title %}{{ t('Payments') }}{% endblock %} {% block content %}

{{ t('Payments') }}

{{ t('Your invoices with us') }}

{% for b in bills %} {% else %}{% endfor %}
{{ t('Your invoice no.') }}{{ t('Our reference') }}{{ t('Date') }}{{ t('Due') }}{{ t('Total') }}{{ t('Still to pay') }}{{ t('Status') }}
{{ b.ref or '—' }}{{ b.number }}{% if b.kind == 'in_refund' %} {{ t('Credit') }}{% endif %}{{ b.date }}{{ b.due_date or '' }} {{ b.amount_total|money(b.currency or b.bcur) }} {{ b.currency or b.bcur }}{{ b.residual|money(b.currency or b.bcur) }} {% if b.kind == 'in_refund' %}—{% elif b.residual <= 0 %}{{ t('Paid') }}{% elif b.residual < b.amount_total %}{{ t('Partly paid') }}{% elif b.due_date and b.due_date < today %}{{ t('Overdue') }}{% else %}{{ t('Not yet due') }}{% endif %}
{{ t('Nothing yet.') }}

{{ t('Payments made to you') }}

{% for p in pays %} {% else %}{% endfor %}
{{ t('Date') }}{{ t('Reference') }}{{ t('Amount') }}
{{ p.date }}{{ p.name or '' }} {{ p.ref or '' }}{{ p.amount|money(p.currency or p.bcur) }} {{ p.currency or p.bcur }}
{{ t('Nothing yet.') }}
{% endblock %}