{{ _('Tariffs') }}

{{ _('Create or update tariffs including validity, EMSP surcharges, and tax handling.') }}

{{ _('Export JSON') }} {{ _('Export CSV') }}
{% for message in success_messages or [] %} {% endfor %} {% for message in error_messages or [] %} {% endfor %}
{{ _('Tariff details') }}
{% set currency_options = ['EUR', 'CHF', 'USD'] %} {% set selected_currency = (selected_tariff.currency if selected_tariff else 'EUR') %}
{% set en_alt = (selected_tariff.tariff_alt_text | selectattr('language', 'equalto', 'en') | list | first | default({})) if selected_tariff and selected_tariff.tariff_alt_text else {} %}
{% set de_alt = (selected_tariff.tariff_alt_text | selectattr('language', 'equalto', 'de') | list | first | default({})) if selected_tariff and selected_tariff.tariff_alt_text else {} %}
{{ _('Include VAT in price components or toggle the tax flag above.') }}
{% for row in surcharge_rows %} {% endfor %}
{{ _('Backend') }} {{ _('Percent markup') }} {{ _('Fixed markup') }}
{{ _('Percent values are applied per EMSP; leave backend empty for defaults.') }}
{% if selected_tariff %} {% endif %}
{{ _('Assignments') }}
{% if selected_tariff %}
{% for loc in locations %} {% for evse in loc.evses %} {% endfor %} {% endfor %}
{% set current_assignments = assignments_by_tariff.get(selected_tariff.id | string, []) %} {% if current_assignments %} {% for assignment in current_assignments %} {% endfor %} {% else %} {% endif %}
{{ _('Location') }} {{ _('EVSE') }} {{ _('Actions') }}
{{ assignment.location_id }} {{ assignment.evse_uid or _('Location level') }}
{{ _('No data available yet.') }}
{% else %}

{{ _('Select a tariff to manage assignments.') }}

{% endif %}
{{ _('Tariff overview') }}
{% if tariffs %} {% for tariff in tariffs %} {% endfor %} {% else %} {% endif %}
{{ _('Tariff ID') }} {{ _('Currency') }} {{ _('Valid from') }} {{ _('Valid until') }} {{ _('Tax included') }} {{ _('EMSP surcharges') }}
{{ tariff.id }} {{ tariff.currency }} {{ tariff.valid_from or '-' }} {{ tariff.valid_until or '-' }} {% if tariff.tax_included %} {{ _('Yes') }} {% else %} {{ _('No') }} {% endif %} {% if tariff.emsp_surcharges %} {% for surcharge in tariff.emsp_surcharges %} {{ surcharge.backend_id or _('All') }}: {{ surcharge.percent or 0 }}% / {{ surcharge.fixed or 0 }} {% endfor %} {% else %} {{ _('None') }} {% endif %}
{{ _('No data available yet.') }}