<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: "Arial Narrow";
font-size: 12px;
}
.titre {
font-size: 16px;
text-align: center;
font-weight: bold;
padding-bottom: 0;
line-height: 1.6em;
}
.titre p {
margin: 0 !important;
}
.table_1,
.table_2 {
width: 100%;
border-collapse: collapse;
}
.table_1 tr td,
.table_2 tr td {
border-right: 1px solid #979696;
border-left: 1px solid #979696;
text-align: center;
font-size: 12px;
padding: 5px;
}
.table_1 tr .vide,
.table_2 tr .vide {
padding: 0 !important;
width: 4px !important;
background-color: white !important;
border: none !important;
}
.td_border_bottom {
border-bottom: 1px solid #4d4c4c;
}
{# .table_1 td .vide_fin {
height: 0 !important;
border-top: 1px solid #979696 !important;
border-right: none !important;
border-left: none !important;
} #}
.table_header th {
border: 1px solid black;
background-color: black;
color: white;
text-align: center;
font-size: 11px;
padding: 5px;
}
.td_fin td {
border-top: 3px solid #979696;
background-color: white;
font-weight: bold;
}
.table_2 {
width: 366px;
margin-left: auto;
margin-top: 30px;
font-weight: bold;
}
.table_2 tr .td_titre {
background-color: black;
color: white;
text-align: center;
font-size: 12px;
padding: 5px;
}
.gris {
color: white;
background-color: #979696;
}
@page {
header: html_otherpageheader;
}
</style>
</head>
<body>
<htmlpageheader name="otherpageheader" style="display:none">
<table style="width: 100%; text-align: center;" cellspacing="0">
<tr>
<td style="width: 90%; text-align: right;"></td>
<td style="width: 10%; text-align: center;">
{# {% if etablissement.Logo == 'CAS_SSS' %}
<img style="margin-right: 4px; height:2.8cm; width:5.5cm" src="Logos/SSS.png">
{% else %} #}
<img style="margin-right: 20px; float: right; width: 230px; height: 60px;" src="{{dossier.image}}" alt="Logo">
{# {% endif %} #}
</td>
</tr>
</table>
</htmlpageheader>
<div class="titre">
<p>ETAT RECAPITULATIF<br>ENTRE {{date|date_modify('first day of this month')|date('d/m/Y')}}
ET {{date|date_modify('last day of this month')|date('d/m/Y')}}<br>{{dossier.Abreviation}}</p>
{# <p>ETAT RECAPITULATIF<br>ENTRE =
ET =<br></p> #}
</div>
<div>
<p><span>Code : </span> {{dossier.id}} </p>
</div>
<div>
<table class="table_1">
<tr class="table_header">
<th style="width: 60px;">ORDRE</th>
{# <th class="vide"></th> #}
<th style="width: 100px;">ID ELEMENTS</th>
{# <th class="vide"></th> #}
<th style="width: 250px;">ELEMENTS</th>
<th class="vide"></th>
<th style="width: 100px;">DEBIT</th>
<th class="vide"></th>
<th style="width: 100px;">CREDIT</th>
</tr>
{% set somme1 = 0 %}
{% set somme2 = 0 %}
{% set montantDebit = 0 %}
{% set montantCredit = 0 %}
{% for key, d in results %}
{# {% if (d.se == "Gain" and d.Montant != 0) or (d.xType_R == "Retenue" and d.Montant != 0) %} #}
{% if d.compteComptable == 6%}
{% set somme1 = somme1 + d.Montant %}
{% set montantCredit = d.Montant %}
{% set montantDebit = '' %}
{% else %}
{% set somme2 = somme2 + d.Montant %}
{% set montantCredit = '' %}
{% set montantDebit = d.Montant %}
{% endif %}
<tr>
<td class="bright">{{ key }}</td>
{# <td class="vide"></td> #}
<td>{{ d.code }}</td>
{# <td class="vide"></td> #}
<td>{{ d.designation }}</td>
<td class="vide"></td>
<td>
{{montantCredit}}
</td>
<td class="vide"></td>
<td>
{{montantDebit}}
</td>
</tr>
{# {% endif %} #}
{% endfor %}
<tr>
<td class="td_border_bottom"></td>
{# <td></td> #}
<td class="td_border_bottom"></td>
{# <td></td> #}
<td class="td_border_bottom"></td>
<td></td>
<td class="td_border_bottom"></td>
<td></td>
<td class="td_border_bottom"></td>
</tr>
</table>
<table class="table_2">
<tr>
<td class="td_titre">TOTAL :</td>
<td class="vide"></td>
<td class="gris" style="text-align: right;">{{ somme1|number_format(2, ',', ' ') }}</td>
<td class="vide"></td>
<td class="gris" style="text-align: right;">{{ somme2|number_format(2, ',', ' ') }}</td>
</tr>
</table>
</div>
</body>
</html>