{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block title %}{% trans "PSP Diagnostic" %}{% endblock %} {% block content %}

{% trans "PSP Fees Export Diagnostic" %}

{% trans "This page displays diagnostic information about the accounting export plugin with PSP fees." %}
{% if not has_config %}
{% trans "No PSP configuration found. Please configure your API keys first." %} {% trans "Configure now" %}
{% else %}

{% trans "PSP Configuration" %}

Mollie {% if psp_config.mollie_enabled %} {% trans "Enabled" %} {% if psp_config.mollie_test_mode %} {% trans "Mode Test" %} {% endif %} {% else %} {% trans "Disabled" %} {% endif %}
SumUp {% if psp_config.sumup_enabled %} {% trans "Enabled" %} {% if psp_config.sumup_test_mode %} {% trans "Mode Test" %} {% endif %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Cache duration" %} {{ psp_config.cache_duration }} {% trans "seconds" %}
{% endif %}

{% trans "Cache Statistics" %}

{{ cache_stats.total }}

{% trans "Transactions en cache" %}

{{ cache_stats.recent }}

{% trans "Last hour" %}

{{ cache_stats.old }}

{% trans "Plus de 24h" %}

{% if cache_stats.by_provider %}

{% trans "By provider" %}

{% for provider_stat in cache_stats.by_provider %} {% endfor %}
{% trans "PSP" %} {% trans "Count" %} {% trans "Gross Total" %} {% trans "Total Fees" %}
{{ provider_stat.psp_provider }} {{ provider_stat.count }} {{ provider_stat.total_gross|default:"0.00"|floatformat:2 }} EUR {{ provider_stat.total_fees|default:"0.00"|floatformat:2 }} EUR
{% else %}

{% trans "No cached transactions at the moment." %}

{% endif %}

{% trans "Maintenance actions" %}

{% trans "Available actions to manage cache and PSP data." %}

{% trans "Features coming in a future version." %}

{% if recent_errors %}

{% trans "Recent errors" %}

{% for error in recent_errors %} {% endfor %}
{% trans "Date" %} {% trans "Type" %} {% trans "Message" %}
{{ error.timestamp|date:"d/m/Y H:i:s" }} {{ error.type }} {{ error.message }}
{% endif %} {% endblock %}