<div class="resultat_filtre">
    {{ bullFiltre(post, 'filtre_commande') }}
</div>

<div id="liste" class="add-margin">
    <table class="table table-hover">
        <thead>
            <tr>
                <th scope="col">{{ 'N° de BR' | trad }}</th>
                <th scope="col">{{ 'N° de CDE' | trad }}</th>
                <th scope="col">{{ 'Société' | trad }}</th>
                <th scope="col">{{ 'Fournisseur' | trad }}</th>
                <th scope="col">{{ 'Acheteur' | trad }}</th>
                <th scope="col">{{ 'Total HT' | trad }}</th>
                <th scope="col">{{ 'Action' | trad }}</th>
            </tr>
        </thead>
        <tbody>
            <tr class="recherche">
                <td>{{ filterTable('NUM_BR', post.filter_NUM_BR, '', '', '', 'filtre_commande', '', 'N° de BR' | trad) }}</td>
                <td>{{ filterTable('NUM_CDE', post.filter_NUM_CDE, '', '', '', 'filtre_commande', '', 'N° de commande' | trad) }}</td>
                <td>{{ zoomFilter('egal_CODE_STE', post.filter_egal_CODE_STE, '', 'filtre_commande', path('Ajax.liste.societe'), 'Liste des sociétés' | trad, '','', 'Société' | trad,'','', 'libelle_Societe') }}</td>
                <td>{{ zoomFilter('egal_CODE_FOU', post.filter_egal_CODE_FOU, '', 'filtre_commande', path('Ajax.liste.fournisseur'),'Liste des fournisseurs' | trad, '','', 'Fournisseur' | trad,'','','libelle_Fourniss') }}</td>
                <td>{{ zoomFilter('ACH', post.filter_ACH, '', 'filtre_commande', path('Ajax.liste.utilisateur'),'Listes des acheteurs' | trad, '','','Utilisateur','','','Hastutil') }}</td>
                <td>{{ filterTable('montant_TOTAL_HT', post.filter_montant_TOTAL_HT, '', '', '', 'filtre_commande','', 'Total HT' | trad) }}</td>
                <td></td>
            </tr>

            {% for br in items %}
                <tr id="br{{ br.NUM_BR }}">
                    <td class="toggleSlide" onclick="toggleSlide('{{ path('Reception.Ajax.getBRDetail', {br: br.NUM_BR }) }}', 'br{{ br.NUM_BR }}detail');">{{ br.NUM_BR }}</td>
                    <td>{{ br.NUM_CDE }}</td>
                    <td>{{ br.CODE_STE | societeTrad }} ({{ br.CODE_STE }})</td>
                    <td>{{ br.CODE_FOU |fournisseurTrad }} ({{ br.CODE_FOU }})</td>
                    <td>{{ br.Acheteur_NOM }} ({{ br.ACH }})</td>
                    <td class="montant">{{ br.TOTAL_HT | prix }} {{ br.CODE_DEVI }}</td>
                    <td>{{ Button('Retourner' | trad, 1, path('Reception.CreationBR.creatEdit', {order: br.NUM_BR, type: 'A', mode: 'C', init: '1'})) }}</td>
                </tr>
                <tr class="detail_ligne hide_detail" id="br{{ br.NUM_BR }}detail"></tr>
            {% endfor %}
        </tbody>
    </table>
    {{ paginations(path('Reception.GestionBR.index', {type: type}),infoPagination.nombreDePage, infoPagination.page, infoPagination.post) }}
</div>