Overview
Comment: | Amélioration ergonomie + pas de strtotime |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
66325c41e48b6bb0d66ee6cb72124eef |
User & Date: | bohwaz on 2012-09-09 01:05:41 |
Other Links: | manifest | tags |
Context
2012-09-15
| ||
03:00 | Chiffrement/déchiffrement des pages du wiki check-in: 3c6b288f6b user: bohwaz tags: trunk | |
2012-09-09
| ||
01:05 | Amélioration ergonomie + pas de strtotime check-in: 66325c41e4 user: bohwaz tags: trunk | |
00:41 | Catégories comptables par défaut check-in: 193cf13f97 user: bohwaz tags: trunk | |
Changes
Modified include/class.compta_categories.php from [28d3f96669] to [197bb1a68c].
︙ | ︙ | |||
96 97 98 99 100 101 102 103 104 105 106 107 108 109 | } public function listMoyensPaiement() { $db = Garradin_DB::getInstance(); return $db->simpleStatementFetchAssocKey('SELECT code, nom FROM compta_moyens_paiement ORDER BY nom COLLATE NOCASE;'); } protected function _checkFields(&$data) { if (empty($data['intitule']) || !trim($data['intitule'])) { throw new UserException('L\'intitulé ne peut rester vide.'); } | > > > > > > | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | } public function listMoyensPaiement() { $db = Garradin_DB::getInstance(); return $db->simpleStatementFetchAssocKey('SELECT code, nom FROM compta_moyens_paiement ORDER BY nom COLLATE NOCASE;'); } public function getMoyenPaiement($code) { $db = Garradin_DB::getInstance(); return $db->simpleQuerySingle('SELECT nom FROM compta_moyens_paiement WHERE code = ?;', false, $code); } protected function _checkFields(&$data) { if (empty($data['intitule']) || !trim($data['intitule'])) { throw new UserException('L\'intitulé ne peut rester vide.'); } |
︙ | ︙ |
Modified include/class.compta_journal.php from [8e2454921e] to [50d14d4084].
︙ | ︙ | |||
52 53 54 55 56 57 58 | $db = Garradin_DB::getInstance(); $exercice = $this->_getCurrentExercice(); $exercice = is_null($exercice) ? 'IS NULL' : '= ' . (int)$exercice; $compte = $inclure_sous_comptes ? 'LIKE \'' . $db->escapeString(trim($compte)) . '%\'' : '= \'' . $db->escapeString(trim($compte)) . '\''; | | | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | $db = Garradin_DB::getInstance(); $exercice = $this->_getCurrentExercice(); $exercice = is_null($exercice) ? 'IS NULL' : '= ' . (int)$exercice; $compte = $inclure_sous_comptes ? 'LIKE \'' . $db->escapeString(trim($compte)) . '%\'' : '= \'' . $db->escapeString(trim($compte)) . '\''; $query = 'SELECT *, strftime(\'%s\', date) AS date FROM compta_journal WHERE (compte_debit '.$compte.' OR compte_credit '.$compte.') AND id_exercice '.$exercice.' ORDER BY date;'; return $db->simpleStatementFetch($query); } public function add($data) |
︙ | ︙ |
Modified templates/admin/compta/compte_journal.tpl from [664f6b311a] to [d8dff54350].
1 2 3 4 5 | {include file="admin/_head.tpl" title="Journal : `$compte.id` - `$compte.libelle`" current="compta/gestion"} <table class="list"> {foreach from=$journal item="ligne"} <tr> | > > > > > > > > > > > | < > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | {include file="admin/_head.tpl" title="Journal : `$compte.id` - `$compte.libelle`" current="compta/gestion"} <table class="list"> <colgroup> <col width="3%" /> <col width="3%" /> <col width="12%" /> <col width="10%" /> <col /> </colgroup> {foreach from=$journal item="ligne"} <tr> <td><a href="{$admin_url}compta/operation.php?id={$ligne.id|escape}">{$ligne.id|escape}</a></td> <td class="actions"> <a class="icn" href="{$admin_url}compta/operation_modifier.php?id={$ligne.id|escape}">✎</a> </td> <td>{$ligne.date|date_fr:'d/m/Y'|escape}</td> <td>{if $ligne.compte_credit == $compte.id}-{$ligne.montant|escape}{else}+{$ligne.montant|escape}{/if}</td> <th>{$ligne.libelle|escape}</th> </tr> {/foreach} <tbody> <tr> <td></td> <td></td> <th>Solde</th> <td>{$solde|escape} {$config.monnaie|escape}</td> <td></td> </tr> </tbody> </table> {include file="admin/_foot.tpl"} |
Modified templates/admin/compta/journal.tpl from [251b5c2343] to [eedaafc38f].
︙ | ︙ | |||
13 14 15 16 17 18 19 | <td>Débit</td> <td>Crédit</td> </tr> </thead> <tbody> {foreach from=$journal item="ligne"} <tr> | | | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | <td>Débit</td> <td>Crédit</td> </tr> </thead> <tbody> {foreach from=$journal item="ligne"} <tr> <td rowspan="2">{$ligne.date|date_fr:'d/m/Y'|escape}</td> <th rowspan="2">{$ligne.libelle|escape}</th> <td>{$ligne.compte_debit|escape} - {$ligne.compte_debit|get_nom_compte}</td> <td>{$ligne.montant|escape} {$config.monnaie|escape}</td> <td></td> </tr> <tr> <td>{$ligne.compte_credit|escape} - {$ligne.compte_credit|get_nom_compte}</td> |
︙ | ︙ |
Modified templates/admin/compta/operation.tpl from [59bef79f48] to [db1640f5f6].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {include file="admin/_head.tpl" title="Opération n°`$operation.id`" current="compta/gestion"} <dl class="operation"> <dt>Date</dt> <dd>{$operation.date|date_fr:'l j F Y (d/m/Y)'}</dd> <dt>Libellé</dt> <dd>{$operation.libelle|escape}</dd> <dt>Montant</dt> <dd>{$operation.montant|escape} {$config.monnaie|escape}</dd> <dt>Numéro pièce comptable</dt> <dd>{if trim($operation.numero_piece)}{$operation.numero_piece|escape}{else}Non renseigné{/if}</dd> {if $operation.id_categorie} <dt>Moyen de paiement</dt> | > > > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | {include file="admin/_head.tpl" title="Opération n°`$operation.id`" current="compta/gestion"} <ul class="actions"> <li class="edit"><a href="{$admin_url}compta/operation_modifier.php?id={$operation.id|escape}">Modifier cette opération</a></li> <li class="delete"><a href="{$admin_url}compta/operation_supprimer.php?id={$operation.id|escape}">Supprimer cette opération</a></li> </ul> <dl class="operation"> <dt>Date</dt> <dd>{$operation.date|date_fr:'l j F Y (d/m/Y)'}</dd> <dt>Libellé</dt> <dd>{$operation.libelle|escape}</dd> <dt>Montant</dt> <dd>{$operation.montant|escape} {$config.monnaie|escape}</dd> <dt>Numéro pièce comptable</dt> <dd>{if trim($operation.numero_piece)}{$operation.numero_piece|escape}{else}Non renseigné{/if}</dd> {if $operation.id_categorie} <dt>Moyen de paiement</dt> <dd>{if trim($operation.moyen_paiement)}{$moyen_paiement|escape}{else}Non renseigné{/if}</dd> {if $operation.moyen_paiement == 'CH'} <dt>Numéro de chèque</dt> <dd>{if trim($operation.numero_cheque)}{$operation.numero_cheque|escape}{else}Non renseigné{/if}</dd> {/if} {if $operation.moyen_paiement && $operation.moyen_paiement != 'ES'} |
︙ | ︙ | |||
39 40 41 42 43 44 45 | <dt>Remarques</dt> <dd>{if trim($operation.remarques)}{$operation.remarques|escape}{else}Non renseigné{/if}</dd> </dl> <table class="list multi"> <thead> <tr> | | > | > | | 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 | <dt>Remarques</dt> <dd>{if trim($operation.remarques)}{$operation.remarques|escape}{else}Non renseigné{/if}</dd> </dl> <table class="list multi"> <thead> <tr> <th colspan="2">Comptes</th> <td>Débit</td> <td>Crédit</td> </tr> </thead> <tbody> <tr> <td><a href="{$admin_url}compta/compte_journal.php?id={$operation.compte_debit|escape}">{$operation.compte_debit|escape}</a></td> <td>{$nom_compte_debit}</td> <td>{$operation.montant|escape} {$config.monnaie|escape}</td> <td></td> </tr> <tr> <td><a href="{$admin_url}compta/compte_journal.php?id={$operation.compte_credit|escape}">{$operation.compte_credit|escape}</a></td> <td>{$nom_compte_credit}</td> <td></td> <td>{$operation.montant|escape} {$config.monnaie|escape}</td> </tr> </tbody> </table> {include file="admin/_foot.tpl"} |
Modified www/admin/_inc.php from [11ec1171ba] to [a8f15a7f8e].
1 2 3 4 5 6 7 8 9 10 11 12 | <?php require_once __DIR__ . '/../../include/init.php'; require_once GARRADIN_ROOT . '/include/template.php'; require_once GARRADIN_ROOT . '/include/class.membres.php'; $membres = new Garradin_Membres; if (!defined('GARRADIN_LOGIN_PROCESS')) { if (!$membres->isLogged()) { | > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <?php require_once __DIR__ . '/../../include/init.php'; require_once GARRADIN_ROOT . '/include/template.php'; require_once GARRADIN_ROOT . '/include/class.membres.php'; $tpl->assign('admin_url', WWW_URL . 'admin/'); $membres = new Garradin_Membres; if (!defined('GARRADIN_LOGIN_PROCESS')) { if (!$membres->isLogged()) { |
︙ | ︙ |
Modified www/admin/compta/operation.php from [bc97947a3d] to [3bdde86861].
︙ | ︙ | |||
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | { $tpl->assign('compte', $debit['libelle']); } else { $tpl->assign('compte', $credit['libelle']); } } $auteur = $membres->get($operation['id_auteur']); $tpl->assign('nom_auteur', $auteur['nom']); $tpl->display('admin/compta/operation.tpl'); ?> | > > | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | { $tpl->assign('compte', $debit['libelle']); } else { $tpl->assign('compte', $credit['libelle']); } $tpl->assign('moyen_paiement', $cats->getMoyenPaiement($operation['moyen_paiement'])); } $auteur = $membres->get($operation['id_auteur']); $tpl->assign('nom_auteur', $auteur['nom']); $tpl->display('admin/compta/operation.tpl'); ?> |
Modified www/admin/static/admin.css from [ae4601342e] to [85ed398f04].
︙ | ︙ | |||
146 147 148 149 150 151 152 | padding: 0.2em 0.5em 0.2em 1em; } input[type=text], textarea, input[type=password], input[type=email], input[type=url], input[type=tel], select { padding: 0.2em 0.4em; font-family: Sans-serif; | | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | padding: 0.2em 0.5em 0.2em 1em; } input[type=text], textarea, input[type=password], input[type=email], input[type=url], input[type=tel], select { padding: 0.2em 0.4em; font-family: Sans-serif; min-width: 20em; } input[size] { min-width: 0; } input.time { |
︙ | ︙ | |||
465 466 467 468 469 470 471 | fieldset.wikiText textarea, fieldset.skelEdit textarea { width: 100%; } fieldset.wikiMain, fieldset.wikiRights { float: right; | | > > > > | 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 | fieldset.wikiText textarea, fieldset.skelEdit textarea { width: 100%; } fieldset.wikiMain, fieldset.wikiRights { float: right; width: 35%; margin-left: 3%; clear: right; } fieldset.wikiMain input[type=text] { min-width: 0; } fieldset.wikiMain #f_titre { width: 90%; font-size: 14pt; } fieldset.wikiMain #f_uri { |
︙ | ︙ |