Overview
Comment: | Nombre d'écritures comptables réalisées par un membre |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0c756fa6bae22a011f0c273167a34ba6 |
User & Date: | bohwaz on 2014-02-06 19:37:00 |
Other Links: | manifest | tags |
Context
2014-02-06
| ||
19:59 | Liste des écritures réalisées par un membre check-in: 4d6e463155 user: bohwaz tags: trunk | |
19:37 | Nombre d'écritures comptables réalisées par un membre check-in: 0c756fa6ba user: bohwaz tags: trunk | |
19:36 | Renvoi direct sur la fiche membre quand un seul résultat et pas de champ spécifié check-in: 13719ce97e user: bohwaz tags: trunk | |
Changes
Modified src/include/class.compta_journal.php from [d09b669274] to [1959f1b323].
︙ | ︙ | |||
155 156 157 158 159 160 161 162 163 164 165 166 167 168 | public function getLinkedTransaction($id) { $db = DB::getInstance(); return $db->simpleQuerySingle('SELECT id_membre_transaction FROM membres_transactions_operations WHERE id_operation = ?;', false, (int)$id); } protected function _checkFields(&$data) { $db = DB::getInstance(); if (empty($data['libelle']) || !trim($data['libelle'])) { | > > > > > > > | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | public function getLinkedTransaction($id) { $db = DB::getInstance(); return $db->simpleQuerySingle('SELECT id_membre_transaction FROM membres_transactions_operations WHERE id_operation = ?;', false, (int)$id); } public function countForMember($id) { $db = DB::getInstance(); return $db->simpleQuerySingle('SELECT COUNT(*) FROM compta_journal WHERE id_auteur = ?;', false, (int)$id); } protected function _checkFields(&$data) { $db = DB::getInstance(); if (empty($data['libelle']) || !trim($data['libelle'])) { |
︙ | ︙ |
Modified src/templates/admin/membres/fiche.tpl from [44b45febaf] to [4d7a7786fd].
︙ | ︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | {$nb_paiements|escape} paiements enregistrés {else} Aucun paiement enregistré {/if} — <a href="{$admin_url}membres/transactions.php?id={$membre.id|escape}">Voir l'historique</a> </dd> <dd><form method="get" action="{$admin_url}membres/transactions/ajout.php"><input type="submit" value="Enregistrer un paiement →" /><input type="hidden" name="id" value="{$membre.id|escape}" /></form></dd> </dl> <dl class="describe"> <dt>Numéro d'adhérent</dt> <dd>{$membre.id|escape}</dd> {foreach from=$champs key="c" item="config"} <dt>{$config.title|escape}</dt> <dd> {if $config.type == 'checkbox'} {if $membre[$c]}Oui{else}Non{/if} {elseif empty($membre[$c])} <em>(Non renseigné)</em> | > > > > > > > > > > > > | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | {$nb_paiements|escape} paiements enregistrés {else} Aucun paiement enregistré {/if} — <a href="{$admin_url}membres/transactions.php?id={$membre.id|escape}">Voir l'historique</a> </dd> <dd><form method="get" action="{$admin_url}membres/transactions/ajout.php"><input type="submit" value="Enregistrer un paiement →" /><input type="hidden" name="id" value="{$membre.id|escape}" /></form></dd> {if !empty($nb_operations)} <dt>Écritures comptables</dt> <dd>{$nb_operations|escape} écritures comptables — <a href="{$admin_url}compta/operations/membre.php?id={$membre.id|escape}">Voir la liste des écritures ajoutées par ce membre</a> </dd> {/if} </dl> <dl class="describe"> <dt>Numéro d'adhérent</dt> <dd>{$membre.id|escape}</dd> <dt>Catégorie</dt> <dd>{$categorie.nom|escape} <span class="droits">{format_droits droits=$categorie}</span></dd> <dt>Inscription</dt> <dd>{$membre.date_inscription|date_fr:'d/m/Y'}</dd> <dt>Dernière connexion</dt> <dd>{if empty($membre.date_connexion)}Jamais{else}{$membre.date_connexion|date_fr:'d/m/Y à H:i'}{/if}</dd> {foreach from=$champs key="c" item="config"} <dt>{$config.title|escape}</dt> <dd> {if $config.type == 'checkbox'} {if $membre[$c]}Oui{else}Non{/if} {elseif empty($membre[$c])} <em>(Non renseigné)</em> |
︙ | ︙ | |||
85 86 87 88 89 90 91 | {/foreach} </ul> {else} {$membre[$c]|escape|rtrim|nl2br} {/if} </dd> {/foreach} | < < < < < < | 97 98 99 100 101 102 103 104 105 106 | {/foreach} </ul> {else} {$membre[$c]|escape|rtrim|nl2br} {/if} </dd> {/foreach} </dl> {include file="admin/_foot.tpl"} |
Modified src/www/admin/membres/fiche.php from [240a33a86e] to [41e56a0abc].
︙ | ︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 | } else { $tpl->assign('cotisation', false); } $tpl->assign('nb_paiements', $m_transactions->countForMember($membre['id'])); $tpl->assign('membre', $membre); $tpl->display('admin/membres/fiche.tpl'); ?> | > > > > > > | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | } else { $tpl->assign('cotisation', false); } $tpl->assign('nb_paiements', $m_transactions->countForMember($membre['id'])); if ($user['droits']['compta'] >= Membres::DROIT_ACCES) { $journal = new Compta_Journal; $tpl->assign('nb_operations', $journal->countForMember($membre['id'])); } $tpl->assign('membre', $membre); $tpl->display('admin/membres/fiche.tpl'); ?> |
Modified src/www/admin/static/admin.css from [e684c5a4b7] to [837c8acbea].
︙ | ︙ | |||
946 947 948 949 950 951 952 953 954 955 956 957 958 959 | table.accountList .niveau_6 .libelle { padding-left: 4em; } table.rib { display: inline-table; vertical-align: middle; font-size: .9em; text-align: center; border-collapse: collapse; } table.rib th, table.rib td { padding: .1em .3em; border: 1px solid #ccc; } dl.describe { margin-bottom: 1em; } dl.describe > dt { font-weight: bold; width: 15em; float: left; clear: left; | > | 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 | table.accountList .niveau_6 .libelle { padding-left: 4em; } table.rib { display: inline-table; vertical-align: middle; font-size: .9em; text-align: center; border-collapse: collapse; } table.rib th, table.rib td { padding: .1em .3em; border: 1px solid #ccc; } dl.describe { margin-bottom: 1em; clear: both; } dl.describe > dt { font-weight: bold; width: 15em; float: left; clear: left; |
︙ | ︙ |