{% if presta is defined %} {% set descr = presta.description %} {% set qte = presta.quantite %} {% set TTC = presta.ttc %} {% endif %} {% if compo is defined and compo != null %} {% set descr = compo %} {% set qte = qte %} {% set TTC = compo.getPrix() %} {% endif %} {% if pc is defined and pc != null %} {% set descr = pc %} {% set qte = qte %} {% set TTC = pc.getPrix() %} {% endif %} {% set tva = 1 + tva /100 %} trash {% if (compo is defined and compo != null) or ( pc is defined and pc != null) %}
{% if pc is defined and pc != null %} pc {% endif %}
{% if pc is defined and pc != null %} {% for pcCompo in pc.getPcComposants() %}
({{pcCompo.quantite}}) - {{pcCompo.composant}}
{% endfor %} {% endif %}
{% else %} {% endif %}
{% if compo is defined and compo != null %} {% if compo.quantite > 5 %} {% set warning = 'success text-white' %} {% elseif compo.quantite > 0 %} {% set warning = 'warning' %} {% else %} {% set warning = 'danger text-white' %} {% endif %}

{{compo.quantite}}

{% endif %}
{{ (TTC / tva) | round(2) }} €
{{TTC}} €
{{TTC * qte}}