0eee3ac03069d8a97665cbce1acfb39b03ffc8a7
[garradin.git] / templates / admin / compta / exercices / journal.tpl
1 {include file="admin/_head.tpl" title="Journal général" 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 class="list multi">
10 <thead>
11 <tr>
12 <th>N°</th>
13 <th>Date</th>
14 <th>Intitulé</th>
15 <th colspan="2">Comptes</th>
16 <th>Débit</th>
17 <th>Crédit</th>
18 </tr>
19 </thead>
20 <tbody>
21 {foreach from=$journal item="ligne"}
22 <tr class='{if $ligne.id % 2 == 0}even{else}odd{/if}'>
23 <td class="num">{if isset($ligne.date)}<a href="{$admin_url}compta/operations/voir.php?id={$ligne.id|escape}">{$ligne.id|escape}</a>{/if}</td>
24 <td>{if isset($ligne.date)}{$ligne.date|date_fr:'d/m/Y'|escape}{/if}</td>
25 <td>{if isset($ligne.date)}{$ligne.libelle|escape}{/if}</td>
26 <td><a href="{$admin_url}compta/comptes/journal.php?id={$ligne.compte|escape}">{$ligne.compte|escape}</a></td>
27 <td>{$ligne.compte|get_nom_compte|escape}</td>
28 {if $ligne.montant > 0}
29 <td>{$ligne.montant|html_money}</td>
30 <td></td>
31 {else}
32 <td></td>
33 <td>{$ligne.montant_oppose|html_money}</td>
34 {/if}
35 </tr>
36 {/foreach}
37 </tbody>
38 </table>
39
40 <p class="help">Toutes les opérations sont libellées en {$config.monnaie|escape}.</p>
41
42 {include file="admin/_foot.tpl"}