{% load format_number i18n static %} {% if can_view_posts %}

{% translate "Prestations" %}

{% if intervention.maintain_type == 'ameliorative' %} {% if period_validation_enabled or can_manage_period_validation %}
{% if can_manage_period_validation %} {% if not period_validation_enabled or period_number == 1 %}
{% endif %} {% endif %}
{% if period_validation_enabled %} {% translate "Période" %} {{ period_number }} {% if can_manage_period_validation %} {% if period_number == 1 %} {% translate "Vous pouvez désactiver tant que la période 1 est en cours." %} {% else %} {% if not intervention.status in 'validated,invoiced,closed,canceled' %}
{% translate "Si 'Dernière période' est activée, la prochaine validation sera définitive." %} {% endif %} {% endif %} {% if intervention.status in 'validated,invoiced,closed' and period_is_final %} {% translate "Intervention définitivement validée." %} {% endif %} {% else %} {% if period_is_final and intervention.status in 'validated,invoiced,closed' %} {% translate "Intervention définitivement validée." %} {% endif %} {% endif %} {% endif %}
{% if can_manage_period_validation %}
{% endif %}
{% endif %} {% endif %}
{% if 'posts' in allowed_update_fields or can_control %} {% endif %} {% translate "Commande" %} :
{% if intervention.order %} {{ intervention.order }} {% else %} {% translate "Aucune commande assignée" %} {% endif %}
{% if period_validation_enabled or has_period_quantities %}
{% else %}
{% endif %}
{% if quote_remaining_available %} {% endif %} {% if has_coefficient_posts %} {% endif %} {% if can_view_prices %} {% endif %} {% if quote_remaining_available %} {% endif %} {% if has_coefficient_posts %} {% endif %} {% if can_view_prices %} {% endif %} {% for item in contract_posts %} {% if quote_remaining_available %} {% with remaining=item.quote_remaining_quantity planned=item.quote_planned_quantity %} {% endwith %} {% endif %} {% if has_coefficient_posts %} {% endif %} {% if can_view_prices %} {% endif %} {% endfor %} {% if 'posts' in allowed_update_fields and not can_control %} {% if quote_remaining_available %} {% endif %} {% if can_view_prices %} {% endif %} {% endif %} {% if can_view_prices %} {% if intervention.status in 'validated,invoiced,closed,canceled' %} {% else %} {% endif %} {% endif %}
{% translate "Poste" %} {% translate "Code" %} {% translate "Description" %}{% translate "Qté devis (prévue/restante)" %}{% translate "Quantité" %}{% if period_validation_enabled %} P {{ period_number }}{% endif %} {% translate "Commentaire" %}{% translate "Type" %} {% translate "Coeff." %}{% translate "Prix Unitaire" %} {% translate "Total" %}{% translate "Statut" %} {% translate "Remarque" %}
{% if can_control %}
{% endif %}
{{ item.contract_post.order_number }} {{ item.contract_post.code }} {% if LANGUAGE_CODE == "nl" %} {{ item.contract_post.description_nl }} {% else %} {{ item.contract_post.description_fr }} {% endif %} {% if planned is not None %} {{ planned|format_quantity }} / {% endif %} {% if remaining is not None %} {{ remaining|format_quantity }} {% else %} - {% endif %} {% if item.quantity is not None %} {{ item.quantity|format_quantity }} {{ item.contract_post.unit }} {% endif %} {{ item.comment|default:'' }}{{ item.contract_post.post_type|default:"-" }} {% if item.contract_post.is_coefficient_multipliable %} {% else %} - {% endif %} {% if item.contract_post.unit_price %} {{ item.contract_post.unit_price|format_price|safe }} {% else %} - {% endif %} {{ item.total_price|format_price|safe }}
{{ item.control_comment|default:'' }}
{% translate "Total Général" %} : {{ total_general|floatformat:2 }} € {{ total_validated|floatformat:2 }} €
{% endif %}