4aac7a5f4670f36e698d532b1755e4b927ef6f53
[garradin.git] / templates / admin / compta / exercices / grand_livre.tpl
1 {include file="admin/_head.tpl" title="Grand livre" 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 {foreach from=$livre.classes key="classe" item="comptes"}
10 <h3>{$classe|get_nom_compte|escape}</h3>
11
12 {foreach from=$comptes item="compte" key="code"}
13 {foreach from=$compte.comptes item="souscompte" key="souscode"}
14 <table class="list">
15 <caption><h4>{$souscode|escape} — {$souscode|get_nom_compte|escape}</h4></caption>
16 <colgroup>
17 <col width="15%" />
18 <col width="65%" />
19 <col width="10%" />
20 <col width="10%" />
21 </colgroup>
22 <thead>
23 <tr>
24 <td>Date</td>
25 <th>Intitulé</th>
26 <td>Débit</td>
27 <td>Crédit</td>
28 </tr>
29 </thead>
30 <tbody>
31 {foreach from=$souscompte.journal item="ligne"}
32 <tr>
33 <td>{$ligne.date|date_fr:'d/m/Y'|escape}</td>
34 <th>{$ligne.libelle|escape}</th>
35 <td>{if $ligne.compte_debit == $souscode}{$ligne.montant|html_money}{/if}</td>
36 <td>{if $ligne.compte_credit == $souscode}{$ligne.montant|html_money}{/if}</td>
37 </tr>
38 {/foreach}
39 </tbody>
40 <tfoot>
41 <tr>
42 <td></td>
43 <th>Solde final</th>
44 <td>{if $souscompte.debit > 0}{$souscompte.debit|html_money}{/if}</td>
45 <td>{if $souscompte.credit > 0}{$souscompte.credit|html_money}{/if}</td>
46 </tr>
47 </tfoot>
48 </table>
49 {/foreach}
50
51 <table class="list">
52 <colgroup>
53 <col width="15%" />
54 <col width="65%" />
55 <col width="10%" />
56 <col width="10%" />
57 </colgroup>
58 <tfoot>
59 <tr>
60 <td>Total</td>
61 <th>{$code|get_nom_compte|escape}</th>
62 <td>{if $compte.total > 0}{$compte.total|abs|html_money}{/if}</td>
63 <td>{if $compte.total < 0}{$compte.total|abs|html_money}{/if}</td>
64 </tr>
65 </tfoot>
66 </table>
67 {/foreach}
68 {/foreach}
69
70 <table class="list">
71 <colgroup>
72 <col width="15%" />
73 <col width="65%" />
74 <col width="10%" />
75 <col width="10%" />
76 </colgroup>
77 <tfoot>
78 <tr>
79 <td><strong>Total</strong></td>
80 <th></th>
81 <td>{$livre.debit|html_money}</td>
82 <td>{$livre.credit|html_money}</td>
83 </tr>
84 </tfoot>
85 </table>
86
87 <p class="help">Toutes les opérations sont libellées en {$config.monnaie|escape}.</p>
88
89 {include file="admin/_foot.tpl"}