{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge %} {% block content %} {% set breadcrumbs = [ {'text': 'Payments'} ] %} {{ page_header( icon_class='fas fa-credit-card', title_text='Payments', subtitle_text='Track and record payments from clients', breadcrumbs=breadcrumbs, actions_html='' + '
{{ summary.total_payments }}
{{ currency|currency_symbol }}{{ "%.2f"|format(summary.total_amount) }}
{{ summary.completed_count }}
{{ currency|currency_symbol }}{{ "%.2f"|format(summary.completed_amount) }}
{{ currency|currency_symbol }}{{ "%.2f"|format(summary.total_fees) }}
| {% endif %} | ID | Invoice | Amount | Date | Method | Status | Actions |
|---|---|---|---|---|---|---|---|
| {% endif %} | #{{ payment.id }} | {{ payment.invoice.invoice_number }} |
{{ payment.amount }} {{ payment.currency or 'EUR' }}
{% if payment.gateway_fee %}
Fee: {{ payment.gateway_fee }} {{ payment.currency or 'EUR' }}
{% endif %}
|
{{ payment.payment_date.strftime('%Y-%m-%d') if payment.payment_date else '—' }} | {{ payment.method or '—' }} | {% if payment.status == 'completed' %} Completed {% elif payment.status == 'pending' %} Pending {% elif payment.status == 'failed' %} Failed {% elif payment.status == 'refunded' %} Refunded {% else %} {{ payment.status|title }} {% endif %} | View |