templates/reporting/extraction/pdf/recapitulatif.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <style>
  8.         body {
  9.             font-family: "Arial Narrow";
  10.             font-size: 12px;
  11.             
  12.         }
  13.         .titre {
  14.             font-size: 16px;
  15.             text-align: center;
  16.             font-weight: bold;
  17.             padding-bottom: 0;
  18.             line-height: 1.6em;
  19.         }
  20.         .titre p {
  21.             margin: 0 !important;
  22.         }
  23.         .table_1,
  24.         .table_2 {
  25.             width: 100%;
  26.             border-collapse: collapse;
  27.         }
  28.         .table_1 tr td,
  29.         .table_2 tr td {
  30.             border-right: 1px solid #979696;
  31.             border-left: 1px solid #979696;
  32.             text-align: center;
  33.             font-size: 12px;
  34.             padding: 5px;
  35.         }
  36.         .table_1 tr .vide,
  37.         .table_2 tr .vide {
  38.             padding: 0 !important;
  39.             width: 4px !important;
  40.             background-color: white !important;
  41.             border: none !important;
  42.         }
  43.         .td_border_bottom {
  44.             border-bottom: 1px solid #4d4c4c;
  45.         }
  46.         {# .table_1 td .vide_fin {
  47.             height: 0 !important;
  48.             border-top: 1px solid #979696 !important;
  49.             border-right: none !important;
  50.             border-left: none !important;
  51.         } #}
  52.         .table_header th {
  53.             border: 1px solid black;
  54.             background-color: black;
  55.             color: white;
  56.             text-align: center;
  57.             font-size: 11px;
  58.             padding: 5px;
  59.         }
  60.         .td_fin td {
  61.             border-top: 3px solid #979696;
  62.             background-color: white;
  63.             font-weight: bold;
  64.         }
  65.         .table_2 {
  66.             width: 366px;
  67.             margin-left: auto;
  68.             margin-top: 30px;
  69.             font-weight: bold;
  70.         }
  71.         .table_2 tr .td_titre {
  72.             background-color: black;
  73.             color: white;
  74.             text-align: center;
  75.             font-size: 12px;
  76.             padding: 5px;
  77.         }
  78.         .gris {
  79.             color: white;
  80.             background-color: #979696;
  81.         }
  82.         @page {
  83.             header: html_otherpageheader;
  84.         }
  85.     </style>
  86. </head>
  87. <body>
  88.     <htmlpageheader name="otherpageheader" style="display:none">
  89.         <table style="width: 100%; text-align: center;" cellspacing="0">
  90.             <tr>
  91.                 <td style="width: 90%; text-align: right;"></td>
  92.                 <td style="width: 10%; text-align: center;">
  93.                     {# {% if etablissement.Logo == 'CAS_SSS' %}
  94.                         <img style="margin-right: 4px; height:2.8cm; width:5.5cm" src="Logos/SSS.png">
  95.                     {% else %} #}
  96.                         <img style="margin-right: 20px; float: right; width: 230px; height: 60px;" src="{{dossier.image}}" alt="Logo">
  97.                     {# {% endif %} #}
  98.                 </td>
  99.             </tr>
  100.         </table>
  101.     </htmlpageheader>
  102.     <div class="titre">
  103.         <p>ETAT RECAPITULATIF<br>ENTRE {{date|date_modify('first day of this month')|date('d/m/Y')}}
  104.             ET {{date|date_modify('last day of this month')|date('d/m/Y')}}<br>{{dossier.Abreviation}}</p>
  105.         {# <p>ETAT RECAPITULATIF<br>ENTRE =
  106.             ET =<br></p> #}
  107.     </div>
  108.     <div>
  109.         <p><span>Code : </span> {{dossier.id}} </p>
  110.     </div>  
  111.     <div>
  112.         <table class="table_1">
  113.             <tr class="table_header">
  114.                 <th style="width: 60px;">ORDRE</th>
  115.                 {# <th class="vide"></th> #}
  116.                 <th style="width: 100px;">ID ELEMENTS</th>
  117.                 {# <th class="vide"></th> #}
  118.                 <th style="width: 250px;">ELEMENTS</th>
  119.                 <th class="vide"></th>
  120.                 <th style="width: 100px;">DEBIT</th>
  121.                 <th class="vide"></th>
  122.                 <th style="width: 100px;">CREDIT</th>
  123.             </tr>
  124.             {% set somme1 = 0 %}
  125.             {% set somme2 = 0 %}
  126.             {% set montantDebit = 0 %}
  127.             {% set montantCredit = 0 %}
  128.             {% for key, d in results %}
  129.                 {# {% if (d.se == "Gain" and d.Montant != 0) or (d.xType_R == "Retenue" and d.Montant != 0) %} #}
  130.                     {% if d.compteComptable == 6%}
  131.                         {% set somme1 = somme1 +  d.Montant %}
  132.                         {% set montantCredit = d.Montant %}
  133.                         {% set montantDebit = '' %}
  134.                     {% else %}
  135.                         {% set somme2 = somme2 + d.Montant %}
  136.                         {% set montantCredit = '' %}
  137.                         {% set montantDebit = d.Montant %}
  138.                     {% endif %}
  139.                     <tr>
  140.                         <td class="bright">{{ key }}</td>
  141.                         {# <td class="vide"></td> #}
  142.                         <td>{{ d.code }}</td>
  143.                         {# <td class="vide"></td> #}
  144.                         <td>{{ d.designation }}</td>
  145.                         <td class="vide"></td>
  146.                         <td>
  147.                             {{montantCredit}}
  148.                         </td>
  149.                         <td class="vide"></td>
  150.                         <td>
  151.                             {{montantDebit}}
  152.                         </td>
  153.                     </tr>
  154.                 {# {% endif %} #}
  155.             {% endfor %}
  156.             <tr>
  157.                 <td class="td_border_bottom"></td>
  158.                 {# <td></td> #}
  159.                 <td class="td_border_bottom"></td>
  160.                 {# <td></td> #}
  161.                 <td class="td_border_bottom"></td>
  162.                 <td></td>
  163.                 <td class="td_border_bottom"></td>
  164.                 <td></td>
  165.                 <td class="td_border_bottom"></td>
  166.             </tr>
  167.         </table>
  168.         <table class="table_2">
  169.             <tr>
  170.                 <td class="td_titre">TOTAL :</td>
  171.                 <td class="vide"></td>
  172.                 <td class="gris" style="text-align: right;">{{ somme1|number_format(2, ',', ' ') }}</td>
  173.                 <td class="vide"></td>
  174.                 <td class="gris" style="text-align: right;">{{ somme2|number_format(2, ',', ' ') }}</td>
  175.             </tr>
  176.         </table>
  177.     </div>
  178. </body>
  179. </html>