{% extends "base.html" %} {% block title %}Payment Batches - Plutus{% endblock %} {% block content %}

Payment Batches

{% if batches %}
{% for batch in batches %} {% endfor %}
Batch ID Created Total Payments Payment Amount Stripe Fees Success Rate Status Actions
#{{ batch.id }} {{ batch.Created.strftime('%Y-%m-%d %H:%M') if batch.Created else '-' }} {{ batch.payment_count or 0 }} {{ batch.total_amount | currency }} {{ batch.total_fees | currency }} {% if batch.payment_count and batch.payment_count > 0 %} {% set success_rate = (batch.successful_count or 0) / batch.payment_count * 100 %} {% if success_rate >= 90 %} {{ "%.1f"|format(success_rate) }}% {% elif success_rate >= 70 %} {{ "%.1f"|format(success_rate) }}% {% else %} {{ "%.1f"|format(success_rate) }}% {% endif %} {% else %} 0% {% endif %}
{% if batch.successful_count %} {{ batch.successful_count }} Success {% endif %} {% if batch.pending_count %} {{ batch.pending_count }} Pending {% endif %} {% if batch.failed_count %} {{ batch.failed_count }} Failed {% endif %} {% if batch.error_count %} {{ batch.error_count }} Errors {% endif %} {% if not batch.successful_count and not batch.failed_count %} No Payments {% endif %}
View Details
{% else %}

No payment batches found. Return to dashboard.

{% endif %} {% endblock %}