Overview
Comment: | Se souvenir de la dernière date entrée, pour entrer des opérations à la suite |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b62925a1b37211d6878de091a36c836c |
User & Date: | bohwaz on 2012-09-28 01:33:25 |
Other Links: | manifest | tags |
Context
2012-09-28
| ||
01:34 | Il est nécessaire d'avoir les constantes définies pour le template check-in: f9490d430c user: bohwaz tags: trunk | |
01:33 | Se souvenir de la dernière date entrée, pour entrer des opérations à la suite check-in: b62925a1b3 user: bohwaz tags: trunk | |
01:32 | Considérer la virgule comme un point dans le nombre check-in: 71cc178318 user: bohwaz tags: trunk | |
Changes
Modified templates/admin/compta/saisie.tpl from [a3be5240ef] to [257694f0fd].
︙ | ︙ | |||
16 17 18 19 20 21 22 | <form method="post" action="{$self_url|escape}"> <fieldset> <legend>Informations sur l'opération</legend> <dl> <dt><label for="f_date">Date</label> <b title="(Champ obligatoire)">obligatoire</b></dt> | | | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <form method="post" action="{$self_url|escape}"> <fieldset> <legend>Informations sur l'opération</legend> <dl> <dt><label for="f_date">Date</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd><input type="date" name="date" id="f_date" value="{form_field name=date default=$date}" size="10" /></dd> <dt><label for="f_libelle">Libellé</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd><input type="text" name="libelle" id="f_libelle" value="{form_field name=libelle}" /></dd> <dt><label for="f_montant">Montant</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd><input type="number" size="5" name="montant" id="f_montant" value="{form_field name=montant default=0.00}" min="0.00" /> {$config.monnaie|escape}</dd> {if is_null($type)} <dt><label for="f_compte_debit">Compte débité</label> <b title="(Champ obligatoire)">obligatoire</b></dt> |
︙ | ︙ |
Modified www/admin/compta/saisie.php from [a662f96851] to [d60da8e9f7].
︙ | ︙ | |||
137 138 139 140 141 142 143 144 145 146 147 148 149 150 | 'compte_debit' => $debit, 'numero_piece' => utils::post('numero_piece'), 'remarques' => utils::post('remarques'), 'id_categorie' => ($type === 'dette') ? null : (int)$cat['id'], 'id_auteur' => $user['id'], )); } utils::redirect('/admin/compta/operation.php?id='.(int)$id); } catch (UserException $e) { $error = $e->getMessage(); } | > > | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | 'compte_debit' => $debit, 'numero_piece' => utils::post('numero_piece'), 'remarques' => utils::post('remarques'), 'id_categorie' => ($type === 'dette') ? null : (int)$cat['id'], 'id_auteur' => $user['id'], )); } $membres->sessionStore('compta_date', utils::post('date')); utils::redirect('/admin/compta/operation.php?id='.(int)$id); } catch (UserException $e) { $error = $e->getMessage(); } |
︙ | ︙ | |||
165 166 167 168 169 170 171 172 173 174 175 | $tpl->assign('moyen_paiement', utils::post('moyen_paiement') ?: 'ES'); $tpl->assign('categories', $cats->getList($type === 'dette' ? Garradin_Compta_Categories::DEPENSES : $type)); $tpl->assign('comptes_bancaires', $banques->getList()); $tpl->assign('banque', utils::post('banque')); } $tpl->assign('custom_js', array('datepickr.js')); $tpl->display('admin/compta/saisie.tpl'); ?> | > | 167 168 169 170 171 172 173 174 175 176 177 178 | $tpl->assign('moyen_paiement', utils::post('moyen_paiement') ?: 'ES'); $tpl->assign('categories', $cats->getList($type === 'dette' ? Garradin_Compta_Categories::DEPENSES : $type)); $tpl->assign('comptes_bancaires', $banques->getList()); $tpl->assign('banque', utils::post('banque')); } $tpl->assign('custom_js', array('datepickr.js')); $tpl->assign('date', $membres->sessionGet('compta_date') ?: false); $tpl->display('admin/compta/saisie.tpl'); ?> |