1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
23 {if $smarty.request.action eq "edit"}
25 Gestion des opérations de trésorerie
28 <form method="post" action="{$platal->path}">
33 Modifier une opération
40 <td>Date (DD/MM/YYYY)</td>
41 <td><input type="text" name="op_date" size="40"
42 value="{$op_date|date_format:"%d/%m/%Y"}" /></td>
45 <td>Description libre</td>
46 <td><input type="text" name="op_label" size="40" value="{$op_label}" /></td>
50 <td><input type="text" name="op_debit" size="40" value="{$op_debit}" /></td>
54 <td><input type="text" name="op_credit" size="40" value="{$op_credit}" /></td>
57 <td class="center" colspan="2">
58 <input type="hidden" name="op_id" value="{$op_id}" />
59 <input type="hidden" name="action" value="update" />
60 <input type="hidden" name="annee" value="{$annee_sel}" />
61 <input type="hidden" name="mois" value="{$mois_sel}" />
62 <input type="submit" value="enregistrer" />
68 <a href="{$platal->path}">retour</a>
69 {elseif $smarty.request.action eq "update" && $op_id}
70 <strong>modification de l'opération</strong>
71 {elseif $smarty.request.action eq "update"}
72 <strong>ajout de l'opération</strong>
73 {elseif $smarty.request.action eq "del"}
74 <strong>suppression de l'opération</strong>
77 {if $smarty.request.action neq "edit"}
79 Trésorerie pour {$mon_sel}
84 <th>Solde en début de mois</th>
87 <td class="right">{$from_solde}</td>
93 <table class="bicol" style="font-size: 90%">
105 <td><strong>Nouvelle opération</strong></td>
109 <form method="post" action="{$platal->path}">
111 <input type="hidden" name="op_id" value="0" />
112 <input type="hidden" name="action" value="edit" />
113 <input type="hidden" name="annee" value="{$annee_sel}" />
114 <input type="hidden" name="mois" value="{$mois_sel}" />
115 <input type="submit" value="new" />
120 {iterate item=op from=$ops}
121 <tr class="{cycle values="pair,impair"}">
123 <td>{$op.date|date_format}</td>
125 <td class="right">{$op.debit}</td>
126 <td class="right">{$op.credit}</td>
128 <form method="post" action="{$platal->path}">
130 <input type="hidden" name="op_id" value="{$op.id}" />
131 <input type="hidden" name="annee" value="{$annee_sel}" />
132 <input type="hidden" name="mois" value="{$mois_sel}" />
133 <input type="submit" name="action" value="edit" />
134 <input type="submit" name="action" value="del" />
144 <table class="bicol">
146 <th>Solde en fin de mois</th>
149 <td class="right">{$to_solde}</td>
155 {include file=trezo/choix_date.tpl month_arr=$month_arr}
158 {* vim:set et sw=2 sts=2 sws=2: *}