Overview
Comment: | Not used anymore |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
5e35f1ac90681737fb532fa6823905f0 |
User & Date: | bohwaz on 2020-09-16 01:53:30 |
Other Links: | branch diff | manifest | tags |
Context
2020-09-16
| ||
15:18 | Method to delete linked files check-in: e90ff81d47 user: bohwaz tags: dev | |
01:53 | Not used anymore check-in: 5e35f1ac90 user: bohwaz tags: dev | |
01:34 | Visualisation d'écriture check-in: fed857312c user: bohwaz tags: dev | |
Changes
Deleted src/templates/admin/compta/operations/voir.tpl version [48d792da66].
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 35 36 37 38 39 40 41 42 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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
{include file="admin/_head.tpl" title="Opération n°%d"|args:$operation.id current="compta/gestion"} {if $session->canAccess('compta', Membres::DROIT_ADMIN)} <ul class="actions"> <li class="edit"><a href="{$admin_url}compta/operations/modifier.php?id={$operation.id}">Modifier cette opération</a></li> <li class="delete"><a href="{$admin_url}compta/operations/supprimer.php?id={$operation.id}">Supprimer cette opération</a></li> </ul> {/if} <dl class="describe"> <dt>Date</dt> <dd>{$operation.date|date_fr:'l j F Y (d/m/Y)'}</dd> <dt>Libellé</dt> <dd>{$operation.libelle}</dd> <dt>Montant</dt> <dd>{$operation.montant|escape|html_money} {$config.monnaie}</dd> <dt>Numéro pièce comptable</dt> <dd>{if trim($operation.numero_piece)}{$operation.numero_piece}{else}<em>Non renseigné</em>{/if}</dd> {if $operation.id_categorie} <dt>Moyen de paiement</dt> <dd>{if trim($operation.moyen_paiement)}{$moyen_paiement}{else}<em>Non renseigné</em>{/if}</dd> {if $operation.moyen_paiement == 'CH'} <dt>Numéro de chèque</dt> <dd>{if trim($operation.numero_cheque)}{$operation.numero_cheque}{else}<em>Non renseigné</em>{/if}</dd> {/if} {if $operation.moyen_paiement && $operation.moyen_paiement != 'ES'} <dt>Compte bancaire</dt> <dd>{$compte}</dd> {/if} <dt>Catégorie</dt> <dd> <a href="{$admin_url}compta/operations/?{if $categorie.type == Compta\Categories::DEPENSES}depenses{else}recettes{/if}">{if $categorie.type == Compta\Categories::DEPENSES}Dépense{else}Recette{/if}</a> : <a href="{$admin_url}compta/operations/?cat={$operation.id_categorie}">{$categorie.intitule}</a> </dd> {/if} <dt>Exercice</dt> <dd> <a href="{$admin_url}compta/exercices/">{$exercice.libelle}</a> | Du {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'} | <strong>{if $exercice.cloture}Clôturé{else}En cours{/if}</strong> </dd> {if $operation.id_projet} <dt>Projet</dt> <dd> <a href="{$admin_url}compta/projets/">{$projet.libelle}</a> </dd> {/if} <dt>Opération créée par</dt> <dd> {if $operation.id_auteur} {if $session->canAccess('compta', Membres::DROIT_ACCES)} <a href="{$admin_url}membres/fiche.php?id={$operation.id_auteur}">{$nom_auteur}</a> {else} {$nom_auteur} {/if} {else} <em>membre supprimé</em> {/if} </dd> <dt>Opération liée à</dt> <dd> {if empty($related_members)} Aucun membre n'est lié à cette opération. {else} {foreach from=$related_members item="membre"} <a href="{$admin_url}membres/{if $membre.id_cotisation}cotisations{else}fiche{/if}.php?id={$membre.id_membre}">{if $membre.id_cotisation}Cotisation pour {/if}{$membre.identite}</a> {/foreach} {/if} </dd> <dt>Remarques</dt> <dd>{if trim($operation.remarques)}{$operation.remarques}{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/comptes/journal.php?id={$operation.compte_debit}">{$operation.compte_debit}</a></td> <td>{$nom_compte_debit}</td> <td>{$operation.montant|escape|html_money} {$config.monnaie}</td> <td></td> </tr> <tr> <td><a href="{$admin_url}compta/comptes/journal.php?id={$operation.compte_credit}">{$operation.compte_credit}</a></td> <td>{$nom_compte_credit}</td> <td></td> <td>{$operation.montant|escape|html_money} {$config.monnaie}</td> </tr> </tbody> </table> {include file="admin/_foot.tpl"} |
< < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted src/www/admin/compta/operations/voir.php version [c847e11f88].
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
<?php namespace Garradin; require_once __DIR__ . '/../_inc.php'; $journal = new Compta\Journal; $operation = $journal->get(qg('id')); if (!$operation) { throw new UserException("L'opération demandée n'existe pas."); } $exercices = new Compta\Exercices; $tpl->assign('operation', $operation); $credit = $comptes->get($operation->compte_credit); $tpl->assign('nom_compte_credit', $credit ? $credit->libelle : null); $debit = $comptes->get($operation->compte_debit); $tpl->assign('nom_compte_debit', $debit ? $debit->libelle : null); $tpl->assign('exercice', $exercices->get($operation->id_exercice)); if ($operation->id_categorie) { $cats = new Compta\Categories; $categorie = $cats->get($operation->id_categorie); $tpl->assign('categorie', $categorie); if ($categorie->type == Compta\Categories::RECETTES) { $tpl->assign('compte', $debit ? $debit->libelle : null); } else { $tpl->assign('compte', $credit ? $credit->libelle : null); } $tpl->assign('moyen_paiement', $cats->getMoyenPaiement($operation->moyen_paiement)); } if ($operation->id_projet) { $tpl->assign('projet', (new Compta\Projets)->get($operation->id_projet)); } if ($operation->id_auteur) { $auteur = (new Membres)->get($operation->id_auteur); $tpl->assign('nom_auteur', $auteur->identite); } $tpl->assign('related_members', $journal->listRelatedMembers($operation->id)); $tpl->display('admin/compta/operations/voir.tpl'); |
< < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |