{% extends "xnbtd/admin/change_list.html" %} {% load i18n admin_list tours pricing %} {% block filters %} {% if cl.has_filters %}

{% translate 'Statistic' %}

{% for column, label in list_statistic %} {% calculate_total cl.result_list column as total %} {% if total is not None %}

{{ label }}: {{ total }}

{% endif %} {% endfor %} {% comment %}We're already in the GLS template, so we know we're dealing with GLS model{% endcomment %} {% if request.GET.date__year and request.GET.date__month %} {% with year=request.GET.date__year month=request.GET.date__month %}

{% translate 'Pricing GLS' %} ({{ month }}/{{ year }})

{% get_month_gls_queryset cl.result_list year month as month_queryset %} {% calculate_gls_delivered_packages_price month_queryset as delivered_price %}

{% translate 'Colis livrés' %}: {{ delivered_price }} €

{% calculate_gls_pickup_packages_price month_queryset as pickup_prices %}

{% translate 'Colis ramassés réguliers' %}: {{ pickup_prices.regular_pickup_price }} €

{% translate 'Enlèvements occasionnels (EO)' %}: {{ pickup_prices.eo_price }} €

{% calculate_gls_shd_price month_queryset as shd_price %}

{% translate 'SHD' %}: {{ shd_price }} €

{% calculate_gls_total_price month_queryset as total_prices %}

{% translate 'Total' %}: {{ total_prices.total_price }} €

{% endwith %} {% endif %}

{% translate 'Filter' %}

{% if cl.is_facets_optional or cl.has_active_filters %}
{% if cl.is_facets_optional %}

{% if cl.add_facets %} {% translate "Hide counts" %} {% else %} {% translate "Show counts" %} {% endif %}

{% endif %} {% if cl.has_active_filters %}

✖ {% translate "Clear all filters" %}

{% endif %}
{% endif %} {% for spec in cl.filter_specs %} {% admin_list_filter cl spec %} {% endfor %}
{% endif %} {% endblock %}