templates/admin/point_par_client.html.twig line 1

Open in your IDE?
  1. {% set ht = 0 %}
  2.             {% set tva = 0 %}
  3.             {% set remise = 0 %}
  4.             {% set ttc = 0 %}
  5.             {% set totalPaye = 0 %}
  6.             {% set totalResteAPayer = 0 %}
  7. <table class="table table-hover my-data-table-special">
  8.     <thead class="thead-dark">
  9.         <tr>
  10.             <th>{{ 'admin.number' | trans }}</th>
  11.             <th>{{ 'admin.date' | trans }}</th>
  12.             <th>{{ 'admin.totalHT' | trans }}</th>
  13.             <th>{{ 'admin.totalTTC' | trans }}</th>
  14.             <th>{{ 'admin.paye' | trans }}</th>
  15.             <th>{{ 'admin.reste_a_payer' | trans }}</th>
  16.             <th class="text-center">{{ 'admin.actions' | trans }}</th>
  17.         </tr>
  18.     </thead>
  19.     <tbody>
  20.             {% for proposal in invoices %}
  21.                 {% set totalPaye = proposal.montantPaye + totalPaye %}
  22.                 {% set totalResteAPayer = proposal.resteAPayer + totalResteAPayer %}
  23.                 {% set ht = ht + proposal.totalHT %}
  24.                 {% set remise = remise + proposal.remise %}
  25.                 {% set ttc = ttc + proposal.totalTTC %}
  26.               <tr>
  27.                 <td>{{ proposal.numero }}</td>
  28.                 <td>{{ proposal.laDate | date('d/m/Y') }}</td>
  29.                 
  30.                 <td>{{ proposal.totalHTApresRemise | number_format(0, '', ' ') }}</td>
  31.                 <td>{{ proposal.totalTTC | number_format(0, '', ' ') }}</td>
  32.                 <td>{{ proposal.montantPaye | number_format(0, '', ' ') }}</td>
  33.                 <td>{{ proposal.resteAPayer | number_format(0, '', ' ') }}</td>
  34.                 <td class="py-3 align-middle">
  35.                         
  36.                         <span type="button" class="btn btn-outline-info btn-icon detail-commande-par-client" data-bs-toggle="tooltip" title="Détail">
  37.                             <i class="bi bi-eye me-1"></i> <span class="id-commande" hidden>{{ proposal.id }}</span>
  38.                         </span>
  39.                         {% if proposal.tokenFNE == '' %}
  40.                         <a href="{{ path('admin.edit_sale', {'slug': boutique.slug, 'type': proposal.typeFacture, 'id': proposal.id}) }}" type="button" class="btn btn-outline-info btn-icon" data-bs-toggle="tooltip"  data-bs-placement="top" title="{{ 'admin.edit' | trans }}">
  41.                                   <i class="bi bi-pencil me-1"></i>
  42.                             </a>
  43.                         {% endif %}
  44.                         {% if proposal.typeFacture == 'invoice' %}
  45.                             {% if proposal.resteAPayer > 0 %}
  46.                                 <a type="button" href="{{ path('admin.new_payment', {'slug': boutique.slug, 'id': proposal.id}) }}" class="btn btn-outline-info item-menu-travail btn-icon"  data-bs-toggle="tooltip"  data-bs-placement="top" title="{{ 'admin.make_a_payment' | trans }}">
  47.                                 <i class="bi bi-cash me-1"></i>
  48.                                 </a>
  49.                             {% endif %}
  50.                         {% endif %}
  51.                         
  52.                          <a target="_blank" href="{{ proposal.lienPDF }}" type="button" class="btn btn-outline-info btn-icon" data-bs-toggle="tooltip"  data-bs-placement="top" title="{{ 'admin.export_pdf' | trans }}">
  53.                           <i class="bi bi-file-pdf me-1"></i>
  54.                         </a>
  55.                         {% if proposal.typeFacture == 'invoice' %}
  56.                             {% if proposal.tokenFNE != '' %}
  57.                                 <a target="_blank" href="{{ proposal.tokenFNE }}" type="button" class="btn btn-outline-success btn-icon" data-bs-toggle="tooltip"  data-bs-placement="top" title="{{ 'admin.imprimer_fne' | trans }}">
  58.                                 <i class="bi bi-file-pdf me-1">FNE</i>
  59.                                 </a>
  60.                             {% else %}
  61.                                 <a href="{{ path('admin_url_generer_facture_fne', {'slug': boutique.slug, 'id': proposal.id}) }}" type="button" class="btn btn-outline-danger btn-icon" data-bs-toggle="tooltip"  data-bs-placement="top" title="{{ 'admin.generer_fne' | trans }}">
  62.                                 <i class="bi bi-file-pdf me-1">FNE</i>
  63.                                 </a>
  64.                             {% endif %}
  65.                         {% endif %}
  66.                         <a target="_blank" href="{{ path('admin.bon_de_livraison', {'slug': boutique.slug, 'id': proposal.id}) }}" type="button" class="btn btn-outline-info btn-icon" data-bs-toggle="tooltip"  data-bs-placement="top" title="{{ 'admin.bon_de_livraison' | trans }}">
  67.                           <i class="bi bi-file-earmark-break-fill me-1"></i>
  68.                         </a> 
  69.                         
  70.                         {% if proposal.typeFacture == 'invoice' %}
  71.                          <a href="{{ path('admin_url_generer_facture_d_avoir_fne', {'slug': boutique.slug, 'id': proposal.id}) }}" type="button" class="item-menu-travail btn btn-outline-info btn-icon" data-bs-toggle="tooltip"  data-bs-placement="top" title="Facture d'avoir">
  72.                           <i class="bi bi-arrow-return-left me-1"></i>
  73.                         </a>
  74.                         {% endif %}
  75.                         
  76.                          <a href="{{ path('admin.duplicate_sale', {'slug': boutique.slug, 'id': proposal.id}) }}" type="button" class="btn btn-outline-info btn-icon" data-bs-toggle="tooltip"  data-bs-placement="top" title="{{ 'admin.duplicate' | trans }}">
  77.                           <i class="bi bi-copy me-1"></i>
  78.                         </a>
  79.                         
  80.                 </td>
  81.               </tr>
  82.               {% endfor %}                                
  83.     </tbody>
  84.                                         
  85. </table>
  86. <div class="container">
  87.     <div class="row">
  88.         <div class="col-md-3">
  89.             <div class="assie-card">
  90.                     {{ 'admin.totalHT' | trans }}: {{ ht | number_format(0, '', ' ') }}
  91.              </div>
  92.         </div>
  93.         <div class="col-md-3">
  94.             <div class="assie-card">
  95.                     {{ 'admin.totalTVA' | trans }}: {{ tva | number_format(0, '', ' ') }}
  96.              </div>
  97.         </div>
  98.         <div class="col-md-3">
  99.             <div class="assie-card">
  100.             {{ 'admin.totalTTC' | trans }}: {{ ttc | number_format(0, '', ' ') }}
  101.             </div>
  102.         </div>
  103.     </div>
  104.     <div class="row">
  105.          <div class="col-md-4">
  106.             <div class="assie-card">
  107.             {{ 'admin.paye' | trans }}: {{ totalPaye | number_format(0, '', ' ') }}
  108.             </div>
  109.         </div>
  110.          <div class="col-md-4">
  111.             <div class="assie-card">
  112.             {{ 'admin.reste_a_payer' | trans }}: {{ totalResteAPayer | number_format(0, '', ' ') }}
  113.             </div>
  114.         </div>
  115.     </div>
  116. </div>
  117. <br/>