{% if ligne.KEY_RUPTURE1 != '' and saveKeyRupture1 is null or saveKeyRupture1 != ligne.KEY_RUPTURE1 %}
    <tr id="rutpure{{loop.index}}" class="rupture1">
        <td colspan="100">
            <div style="display: flex;justify-content: space-between;">
                <div style="font-weight: bold;">
                    {% if post['rupture-1'] %}
                        {% set rupture = post['rupture-1'] |split('.') %}

                        {% if rupture[1] %}
                            {% set rupture = rupture[1] %}
                        {% else %}
                            {% set rupture = post['rupture-1'] %}
                        {% endif %}
                        
                        {% if ligne['lib_'~rupture] %}
                            {{ ligne['lib_'~rupture] }} ({{ ligne[rupture] }})
                        {% else %}
                            {{ ligne[rupture] }}
                        {% endif %}
                    {% endif %}
                </div>
                <div>{{ parametrage.AFFTTC? 'Total TTC' | trad:'Total HT' | trad }} : <span style="font-weight: bold;">{{ infoRupture[ligne.KEY_RUPTURE1] | prix }} {{ ligne.DEVISE }}</span></div>
            </div>
        </td>
    </tr>
{% endif %}


{% if ligne.KEY_RUPTURE2 != '' and saveKeyRupture2 is null or saveKeyRupture2 != ligne.KEY_RUPTURE2 %}
    <tr id="rutpure{{loop.index}}" class="rupture2">
        <td colspan="100">
            <div style="display: flex;justify-content: space-between;">
                <div style="font-weight: bold;">
                    {% if post['rupture-2'] %}
                        {% set rupture = post['rupture-2'] |split('.') %}

                        {% if rupture[1] %}
                            {% set rupture = rupture[1] %}
                        {% else %}
                            {% set rupture = post['rupture-1'] %}
                        {% endif %}

                        {% if ligne['lib_'~rupture] %}
                            {{ ligne['lib_'~rupture] }} ({{ ligne[rupture] }})
                        {% else %}
                            {{ ligne[rupture] }}
                        {% endif %}
                    {% endif %}
                </div>
                <div>{{ 'Total TTC' | trad }} : <span style="font-weight: bold;">{{ infoRupture[ligne.KEY_RUPTURE2] | prix }} {{ ligne.DEVISE }}</span></div>
            </div>
        </td>
    </tr>
{% endif %}

