init
[garradin.git] / templates / admin / compta / comptes / journal.tpl
1 {include file="admin/_head.tpl" title="Journal : `$compte.id` - `$compte.libelle`" current="compta/gestion" body_id="rapport"}
2
3 {if isset($tpl.get.suivi)}
4 <ul class="actions">
5 <li><a href="{$www_url}admin/compta/banques/">Comptes bancaires</a></li>
6 <li><a href="{$www_url}admin/compta/comptes/journal.php?id={Garradin\Compta_Comptes::CAISSE}">Journal de caisse</a></li>
7 {if $user.droits.compta >= Garradin\Membres::DROIT_ADMIN}<li><strong><a href="{$www_url}admin/compta/banques/ajouter.php">Ajouter un compte bancaire</a></strong></li>{/if}
8 </ul>
9 {/if}
10
11
12 <table class="list">
13 <colgroup>
14 <col width="3%" />
15 <col width="3%" />
16 <col width="12%" />
17 <col width="10%" />
18 <col width="12%" />
19 <col />
20 </colgroup>
21 <thead>
22 <tr>
23 <td></td>
24 <td></td>
25 <td>Date</td>
26 <td>Montant</td>
27 <td>Solde cumulé</td>
28 <th>Libellé</th>
29 </tr>
30 </thead>
31 <tbody>
32 {foreach from=$journal item="ligne"}
33 <tr>
34 <td class="num"><a href="{$admin_url}compta/operations/voir.php?id={$ligne.id|escape}">{$ligne.id|escape}</a></td>
35 <td class="actions">
36 {if $user.droits.compta >= Garradin\Membres::DROIT_ADMIN}
37 <a class="icn" href="{$admin_url}compta/operations/modifier.php?id={$ligne.id|escape}" title="Modifier cette opération">✎</a>
38 {/if}
39 </td>
40 <td>{$ligne.date|date_fr:'d/m/Y'|escape}</td>
41 <td>{if $ligne.compte_credit == $compte.id}{$credit}{else}{$debit}{/if}{$ligne.montant|html_money}</td>
42 <td>{$ligne.solde|html_money}</td>
43 <th>{$ligne.libelle|escape}</th>
44 </tr>
45 {/foreach}
46 </tbody>
47 <tfoot>
48 <tr>
49 <td colspan="3"></td>
50 <th>Solde</th>
51 <td colspan="2">{$solde|html_money} {$config.monnaie|escape}</td>
52 </tr>
53 </tfoot>
54 </table>
55
56 {include file="admin/_foot.tpl"}