Commit | Line | Data |
---|---|---|
fc62be5d | 1 | {% extends 'admin/base_site.html' %} |
3244a3c2 | 2 | {% load adminmedia rapports i18n l10n %} |
df37184c | 3 | |
fc62be5d | 4 | {% block content_title %}<h1>Rapport de masse salariale</h1>{% endblock %} |
df37184c | 5 | |
57e2b793 JPC |
6 | {% block extrastyle %} |
7 | {{ block.super }} | |
39e43860 | 8 | <style type="text/css"> |
fc62be5d EMS |
9 | table.rapport { border: 1px solid #dddddd; } |
10 | table.rapport th { background: white; } | |
11 | table.rapport th.traitements { background: #ecab44; } | |
12 | table.rapport th.indemnites { background: #fff840; } | |
13 | table.rapport th.primes { background: #d7fb0f; } | |
14 | table.rapport th.charges { background: #fb680f; } | |
15 | table.rapport .highlighted { background: #ffff88; } | |
16 | th.section-end, td.section-end { border-right: 10px solid #dddddd; } | |
17 | td.nowrap { white-space: nowrap; } | |
e90b19fd | 18 | </style> |
57e2b793 JPC |
19 | {% endblock %} |
20 | ||
39e43860 EMS |
21 | {% block extrahead %} |
22 | {{ block.super }} | |
fc62be5d EMS |
23 | <script type="text/javascript" |
24 | src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
25 | <script type="text/javascript" src="{{ STATIC_URL }}rh/FixedHeader.min.js"></script> | |
39e43860 | 26 | <script type="text/javascript"> |
fc62be5d EMS |
27 | $(document).ready(function() { |
28 | new FixedHeader($('table.rapport').get(0)); | |
29 | $('table.rapport tr').click(function() { | |
39e43860 EMS |
30 | $(this).toggleClass('highlighted'); |
31 | }); | |
32 | }); | |
33 | </script> | |
34 | {% endblock %} | |
35 | ||
fc62be5d EMS |
36 | {% block content %} |
37 | <form class="module"> | |
38 | <table style="width: 100%"> | |
39 | {{ form }} | |
40 | <tr> | |
41 | <td></td> | |
42 | <td> | |
43 | <input type="submit" value="Afficher"> | |
44 | <input type="submit" name="ods" value="Format Calc"> | |
45 | </td> | |
46 | </tr> | |
47 | </table> | |
48c0abfe | 48 | </form> |
e90b19fd | 49 | |
fc62be5d EMS |
50 | {% if lignes %} |
51 | <p> | |
52 | <strong>Masse salariale totale: {{ masse_salariale_totale }} EUR</strong> | |
53 | </p> | |
e90b19fd | 54 | |
fc62be5d EMS |
55 | <table class="rapport"> |
56 | <thead> | |
778fb9d6 | 57 | <tr> |
fc62be5d EMS |
58 | <th>Bureau</th> |
59 | <th>Pays</th> | |
60 | <th>Implantation</th> | |
61 | <th>Valeur du point</th> | |
62 | <th>Numéro d'employé</th> | |
63 | <th>Nom</th> | |
64 | <th>Prénom</th> | |
65 | <th>Type de poste</th> | |
66 | <th>Intitulé du poste</th> | |
67 | <th>Niveau actuel</th> | |
68 | <th>Points</th> | |
69 | <th>Régime de travail annuel</th> | |
70 | <th>Local / Expatrié</th> | |
71 | <th>Statut</th> | |
72 | <th class="section-end">Date de fin de contrat</th> | |
73 | <th>Date de début</th> | |
74 | <th>Date de fin</th> | |
75 | <th class="section-end">Nombre de jours</th> | |
76 | <th>Devise</th> | |
77 | <th>Salaire BSTG ANNUEL</th> | |
78 | <th>Salaire BSTG EUR</th> | |
79 | <th class="section-end">Organisme BSTG</th> | |
80 | <th class="traitements"> | |
81 | Salaire théorique annuel | |
82 | </th> | |
83 | {% for titre in titres_traitements %} | |
84 | <th class="traitements">{{ titre }}</th> | |
85 | {% endfor %} | |
86 | <th class="traitements section-end"> | |
87 | Total des traitements | |
88 | </th> | |
89 | {% for titre in titres_indemnites %} | |
90 | <th class="indemnites">{{ titre }}</th> | |
91 | {% endfor %} | |
92 | <th class="indemnites section-end">Total des indemnités</th> | |
93 | {% for titre in titres_primes %} | |
94 | <th class="primes">{{ titre }}</th> | |
95 | {% endfor %} | |
96 | <th class="primes section-end">Total des primes</th> | |
97 | {% for titre in titres_charges %} | |
98 | <th class="charges">{{ titre }}</th> | |
99 | {% endfor %} | |
100 | <th class="charges section-end">Total des charges</th> | |
101 | <th class="traitements">Total des traitements</th> | |
102 | <th class="indemnites">Total des indemnités</th> | |
103 | <th class="primes">Total des primes</th> | |
104 | <th class="charges section-end">Total des charges</th> | |
105 | <th>Masse salariale</th> | |
106 | <th>Masse salariale EUR</th> | |
107 | </tr> | |
108 | </thead> | |
109 | <tbody> | |
110 | {% for ligne in lignes %} | |
111 | <tr class="{% cycle 'row1' 'row2' %}"> | |
112 | <td>{{ ligne.poste.implantation.region.code }}</td> | |
113 | <td>{{ ligne.poste.implantation.adresse_physique_pays.nom }}</td> | |
114 | <td>{{ ligne.poste.implantation.nom_court }}</td> | |
115 | <td class="nowrap"> | |
116 | {% if ligne.valeur_point %} | |
117 | {{ ligne.valeur_point }} {{ ligne.valeur_point_devise }} | |
118 | {% endif %} | |
119 | </td> | |
120 | <td> | |
121 | {% if ligne.dossier %} | |
122 | {{ ligne.dossier.employe.id|stringformat:"d" }} | |
123 | {% else %} | |
124 | VACANT | |
125 | {% endif %} | |
126 | </td> | |
127 | <td>{{ ligne.dossier.employe.nom }}</td> | |
128 | <td>{{ ligne.dossier.employe.prenom }}</td> | |
129 | <td>{{ ligne.poste.type_poste.nom }}</td> | |
130 | <td>{{ ligne.poste.nom }}</td> | |
131 | <td>{{ ligne.dossier.classement }}</td> | |
132 | <td class="nowrap"> | |
133 | {{ ligne.dossier.classement.coefficient|floatformat:2 }} | |
134 | </td> | |
135 | <td class="nowrap"> | |
136 | {{ ligne.regime_travail|floatformat }} % | |
137 | </td> | |
138 | <td>{{ ligne.local_expatrie }}</td> | |
139 | <td>{{ ligne.dossier.statut.code }}</td> | |
140 | <td class="section-end">{{ ligne.dossier.date_fin|date }}</td> | |
141 | <td> | |
142 | {{ ligne.date_debut|date }} | |
143 | </td> | |
144 | <td> | |
145 | {{ ligne.date_fin|date }} | |
146 | </td> | |
147 | <td class="section-end"> | |
148 | {{ ligne.jours }} | |
149 | </td> | |
150 | <td>{{ ligne.devise }}</td> | |
151 | <td class="nowrap"> | |
152 | {% if ligne.salaire_bstg %} | |
153 | {{ ligne.salaire_bstg }} {{ ligne.devise }} | |
154 | {% endif %} | |
155 | </td> | |
156 | <td class="nowrap"> | |
157 | {% if ligne.salaire_bstg_eur %} | |
158 | {{ ligne.salaire_bstg_eur }} EUR | |
159 | {% endif %} | |
160 | </td> | |
161 | <td class="section-end">{{ ligne.dossier.organisme_bstg.nom }}</td> | |
162 | <td class="nowrap"> | |
163 | {% if ligne.salaire_theorique %} | |
164 | {{ ligne.salaire_theorique }} {{ ligne.valeur_point_devise }} | |
165 | {% endif %} | |
166 | </td> | |
167 | {% for traitement in ligne.traitements %} | |
168 | <td class="nowrap"> | |
169 | {% if traitement %} | |
170 | {{ traitement }} {{ ligne.devise }} | |
171 | {% endif %} | |
172 | </td> | |
173 | {% endfor %} | |
174 | <td class="section-end nowrap"> | |
175 | {% if ligne.total_traitements %} | |
176 | {{ ligne.total_traitements }} {{ ligne.devise }} | |
177 | {% endif %} | |
178 | </td> | |
179 | {% for indemnite in ligne.indemnites %} | |
180 | <td class="nowrap"> | |
181 | {% if indemnite %} | |
182 | {{ indemnite }} {{ ligne.devise }} | |
183 | {% endif %} | |
184 | </td> | |
185 | {% endfor %} | |
186 | <td class="section-end nowrap"> | |
187 | {% if ligne.total_indemnites %} | |
188 | {{ ligne.total_indemnites }} {{ ligne.devise }} | |
189 | {% endif %} | |
190 | </td> | |
191 | {% for prime in ligne.primes %} | |
192 | <td class="nowrap"> | |
193 | {% if prime %} | |
194 | {{ prime }} {{ ligne.devise }} | |
195 | {% endif %} | |
196 | </td> | |
197 | {% endfor %} | |
198 | <td class="section-end nowrap"> | |
199 | {% if ligne.total_primes %} | |
200 | {{ ligne.total_primes }} {{ ligne.devise }} | |
201 | {% endif %} | |
202 | </td> | |
203 | {% for charge in ligne.charges %} | |
204 | <td class="nowrap"> | |
205 | {% if charge %} | |
206 | {{ charge }} {{ ligne.devise }} | |
207 | {% endif %} | |
208 | </td> | |
209 | {% endfor %} | |
210 | <td class="section-end nowrap"> | |
211 | {% if ligne.total_charges %} | |
212 | {{ ligne.total_charges }} {{ ligne.devise }} | |
213 | {% endif %} | |
214 | </td> | |
215 | <td class="nowrap"> | |
216 | {% if ligne.total_traitements %} | |
217 | {{ ligne.total_traitements }} {{ ligne.devise }} | |
218 | {% endif %} | |
219 | </td> | |
220 | <td class="nowrap"> | |
221 | {% if ligne.total_indemnites %} | |
222 | {{ ligne.total_indemnites }} {{ ligne.devise }} | |
223 | {% endif %} | |
224 | </td> | |
225 | <td class="nowrap"> | |
226 | {% if ligne.total_primes %} | |
227 | {{ ligne.total_primes }} {{ ligne.devise }} | |
228 | {% endif %} | |
229 | </td> | |
230 | <td class="section-end nowrap"> | |
231 | {% if ligne.total_charges %} | |
232 | {{ ligne.total_charges }} {{ ligne.devise }} | |
233 | {% endif %} | |
234 | </td> | |
235 | <td class="nowrap"> | |
236 | {{ ligne.masse_salariale }} {{ ligne.devise }} | |
237 | </td> | |
238 | <td class="nowrap"> | |
239 | {{ ligne.masse_salariale_eur }} EUR | |
240 | </td> | |
778fb9d6 | 241 | </tr> |
fc62be5d EMS |
242 | {% endfor %} |
243 | </tbody> | |
df37184c | 244 | </table> |
fc62be5d EMS |
245 | {% endif %} |
246 | ||
df37184c | 247 | {% endblock %} |