<td colspan="100"  id="ligneAffichage{{ id }}">
    {% if ligneDemandeService %}
    <fieldset class="scheduler-border">
        <legend class="scheduler-border">{{ 'Détails' | trad }}</legend>
        <div class="row">
            <div class="colonne3">
                <div class="informations">
                    <p>
                        <span class="champs_label">{{ 'Reste à servir' | trad }}</span>
                        <span class="resultat text-right">{{ (ligneDemandeService.RESTE | qte) ~ ' ' ~ uniteStockee }}</span>
                    </p>
                    <p>
                        <span class="champs_label">{{ 'Quantité en stock' | trad }}</span>
                        <span class="resultat text-right">{{ stockLocal.QTE_PHYS | qte ~ ' ' ~ uniteStockee }}</span>
                    </p>
                </div>
            </div>
            <div class="colonne3">
                <div class="informations">
                    <p>
                        <span class="champs_label">
                            {{ 'Type de réapprovisionnement' | trad }}
                        </span>
                        <span class="resultat">{{ listeTypeReappro[stockLocal.TYPE_REA] | visualise }}</span>
                    </p>
                </div>
            </div>
            <div class="colonne3">
                <div class="informations">
                    <p>
                        <span class="champs_label">{{ 'Délai de réapprovisionnement' | trad }}</span>
                        <span class="resultat text-right">{{ stockLocal.DELAI_APP ~ ' jours' }}</span>
                    </p>
                </div>
            </div>
        </div>
    </fieldset>
    {% if lignesPlanning|length > 0 %}
    <fieldset class="scheduler-border">
        <legend class="scheduler-border">{{ 'Planning' | trad }}</legend>
        <div class="colonne3">
            <table class="table table-hover d-block">
                <thead class="thead-dark">
                    <tr>
                        <th scope="col" width="500px">{{ 'Date' | trad  }}</th>
                        <th scope="col" width="500px">{{ 'Quantité' | trad  }}</th>
                    </tr>
                </thead>
                <tbody>
                {% for lignePlanning in lignesPlanning %}
                    <tr class="{% if loop.index is divisible by(2) %}even{% else %}odd{% endif %}">
                        <td>{{ lignePlanning.DTE_SOUH | dateTrad }}</td>
                        <td class="text-right">{{ lignePlanning.QTE | qte ~ ' ' ~ uniteStockee }}</td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </fieldset>
    {% endif %}
    {% endif %}

    {% if lots|length > 0 %}
    <fieldset class="scheduler-border">
        <legend class="scheduler-border">
            {{ 'Répartition par lots' | trad }}
        </legend>
        <div class="colonne3">
            <table class="table table-hover d-block">
                <thead class="thead-dark">
                <tr>
                    <th scope="col" width="500px">{{ 'N°Lot' | trad  }}</th>
                    <th scope="col" width="500px">{{ 'Quantité' | trad  }}</th>
                    {% if typeEntete.name == 'BE' %}
                        <th scope="col" width="500px">{{ 'Date de péremption' | trad  }}</th>
                    {% endif %}
                </tr>
                </thead>
                <tbody>
                {% for lot in lots %}
                    <tr class="{% if loop.index is divisible by(2) %}even{% else %}odd{% endif %}">
                        <td>{{ lot.NO_LOT }}</td>
                        <td class="text-right">{{ lot.QTE_LOT | qte ~ ' ' ~ uniteStockee }}</td>
                        {% if typeEntete.name == 'BE' %}
                            <td>{{ lot.DTE_PEREM | dateTrad  }}</td>
                        {% endif %}
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </fieldset>
    {% endif %}

    {% if CSExist(codeTab) %}
    <fieldset class="scheduler-border">
        <legend class="scheduler-border">{{ 'Champs supplémentaires' | trad }}</legend>
        {{ VisualisationCS(codeTab, idCs) }}
    </fieldset>
    {% endif %}
</td>