{% load i18n %} {% if download_url %}
{% trans "Consumer report generated. If the download does not start automatically," %} {% trans "click here to download it." %}
{% endif %} {% if report %}

{% blocktrans with start=report.start_date end=report.end_date %}Report from {{ start }} to {{ end }}{% endblocktrans %}

{% with data=report_rows|default:report.rows_for_display %} {% if data.schema == "evcs-session/v1" %} {% if data.evcs %} {% if report_view_mode == "summary" %} {% if report_summary_rows %}
{% for item in report_summary_rows %} {% with row=item.transaction %} {% endwith %} {% endfor %}
{% trans "Charge point" %} {% trans "Session kW" %} {% trans "Session start" %} {% trans "Session end" %} {% trans "Time" %} {% trans "Connector" %} {% trans "RFID label" %} {% trans "Account" %}
{{ item.display_name }} {% if item.serial_number %} {% trans "Serial" %}: {{ item.serial_number }} {% endif %}
{{ row.session_kwh|floatformat:2 }} {% if row.start %} {% else %}—{% endif %} {% if row.end %} {% else %}—{% endif %} {{ row.duration_minutes|default_if_none:"—" }} {% if row.connector is not None or row.connector_label %}{{ row.connector_label|default:row.connector }}{% else %}—{% endif %} {{ row.rfid_label|default:"—" }} {{ row.account_name|default:"—" }}
{% for evcs in data.evcs %} {% if not evcs.transactions %}

{% blocktrans with name=evcs.display_name %}No charging sessions recorded for {{ name }}.{% endblocktrans %}

{% endif %} {% endfor %} {% else %}

{% trans "No charging sessions were recorded for this period." %}

{% endif %} {% else %} {% for evcs in data.evcs %}

{{ evcs.display_name }} {% if evcs.serial_number %} ({% trans "Serial" %}: {{ evcs.serial_number }}) {% endif %}

{% trans "Total kW (all time)" %}: {{ evcs.total_kw|floatformat:2 }} · {% trans "Total kW (period)" %}: {{ evcs.total_kw_period|floatformat:2 }}

{% if evcs.transactions %} {% for row in evcs.transactions %} {% endfor %}
{% trans "Session kW" %} {% trans "Session start" %} {% trans "Session end" %} {% trans "Time" %} {% trans "Connector" %} {% trans "RFID label" %} {% trans "Account" %}
{{ row.session_kwh|floatformat:2 }} {% if row.start %} {% else %}—{% endif %} {% if row.end %} {% else %}—{% endif %} {{ row.duration_minutes|default_if_none:"—" }} {% if row.connector is not None or row.connector_label %}{{ row.connector_label|default:row.connector }}{% else %}—{% endif %} {{ row.rfid_label|default:"—" }} {{ row.account_name|default:"—" }}
{% else %}

{% trans "No charging sessions recorded for this charge point." %}

{% endif %}
{% endfor %} {% endif %}

{% trans "Report totals" %}

{% trans "Total kW (all time)" %}: {{ data.totals.total_kw|floatformat:2 }}

{% trans "Total kW (period)" %}: {{ data.totals.total_kw_period|floatformat:2 }}

{% else %}

{% trans "No charging sessions were recorded for this period." %}

{% endif %} {% else %} {% with rows=data.rows %} {% if rows %} {% with first=rows|first %} {% if first.start %} {% for row in rows %} {% empty %} {% endfor %}
{% trans "RFID / Account" %} {% trans "Session start" %} {% trans "Session end" %} {% trans "Time" %} {% trans "Energy (kW)" %}
{{ row.subject }} {% if row.start %} {% else %}{% trans "Unavailable" %}{% endif %} {% if row.end %} {% else %}{% trans "In progress" %}{% endif %} {{ row.duration_minutes|default_if_none:"—" }} {{ row.kw|floatformat:2 }}
{% trans "No data available." %}
{% else %} {% for row in rows %} {% empty %} {% endfor %}
{% trans "RFID/Account" %} {% trans "Sessions" %} {% trans "Total kW" %}
{{ row.subject }} {{ row.count }} {{ row.kw|floatformat:2 }}
{% trans "No data available." %}
{% endif %} {% endwith %} {% else %}

{% trans "No data available." %}

{% endif %} {% endwith %} {% endif %} {% endwith %} {% if schedule %}

{% blocktrans with freq=schedule.get_periodicity_display %}Next run scheduled ({{ freq }}){% endblocktrans %}

{% endif %}
{% endif %}