4704b04399e5b9226ff9edb487915fb76a7ac183
[garradin.git] / templates / admin / compta / exercices / bilan.tpl
1 {include file="admin/_head.tpl" title="Bilan" current="compta/exercices" body_id="rapport"}
2
3 <div class="exercice">
4 <h2>{$config.nom_asso|escape}</h2>
5 <p>Exercice comptable {if $exercice.cloture}clôturé{else}en cours{/if} du
6 {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'}, généré le {$cloture|date_fr:'d/m/Y'}</p>
7 </div>
8
9 <table>
10 <colgroup>
11 <col width="50%" />
12 <col width="50%" />
13 </colgroup>
14 <tbody>
15 <tr>
16 <td>
17 <table>
18 <caption><h3>Actif</h3></caption>
19 <tbody>
20 {foreach from=$bilan.actif.comptes key="parent_code" item="parent"}
21 <tr class="parent">
22 <th>{$parent_code|get_nom_compte|escape}</th>
23 <td>{$parent.solde|html_money}</td>
24 </tr>
25 {foreach from=$parent.comptes item="solde" key="compte"}
26 <tr class="compte">
27 <th>{$compte|get_nom_compte|escape}</th>
28 <td>{$solde|html_money}</td>
29 </tr>
30 {/foreach}
31 {/foreach}
32 </tbody>
33 </table>
34 </td>
35 <td>
36 <table>
37 <caption><h3>Passif</h3></caption>
38 <tbody>
39 {foreach from=$bilan.passif.comptes key="parent_code" item="parent"}
40 <tr class="parent">
41 <th>{$parent_code|get_nom_compte|escape}</th>
42 <td>{$parent.solde|html_money}</td>
43 </tr>
44 {foreach from=$parent.comptes item="solde" key="compte"}
45 <tr class="compte">
46 <th>{$compte|get_nom_compte|escape}</th>
47 <td>{$solde|html_money}</td>
48 </tr>
49 {/foreach}
50 {/foreach}
51 </tbody>
52 </table>
53 </td>
54 </tr>
55 </tbody>
56 <tfoot>
57 <tr>
58 <td>
59 <table>
60 <tfoot>
61 <tr>
62 <th>Total actif</th>
63 <td>{$bilan.actif.total|html_money}</td>
64 </tr>
65 </tfoot>
66 </table>
67 </td>
68 <td>
69 <table>
70 <tfoot>
71 <tr>
72 <th>Total passif</th>
73 <td>{$bilan.passif.total|html_money}</td>
74 </tr>
75 </tfoot>
76 </table>
77 </td>
78 </tr>
79 </tfoot>
80 </table>
81
82 <p class="help">Toutes les opérations sont libellées en {$config.monnaie|escape}.</p>
83
84 {include file="admin/_foot.tpl"}