DELETED src/templates/admin/compta/operations/voir.tpl
Index: src/templates/admin/compta/operations/voir.tpl
==================================================================
--- src/templates/admin/compta/operations/voir.tpl
+++ src/templates/admin/compta/operations/voir.tpl
@@ -1,108 +0,0 @@
-{include file="admin/_head.tpl" title="Opération n°%d"|args:$operation.id current="compta/gestion"}
-
-{if $session->canAccess('compta', Membres::DROIT_ADMIN)}
-
-{/if}
-
-
- - Date
- - {$operation.date|date_fr:'l j F Y (d/m/Y)'}
- - Libellé
- - {$operation.libelle}
- - Montant
- - {$operation.montant|escape|html_money} {$config.monnaie}
- - Numéro pièce comptable
- - {if trim($operation.numero_piece)}{$operation.numero_piece}{else}Non renseigné{/if}
-
- {if $operation.id_categorie}
-
- - Moyen de paiement
- - {if trim($operation.moyen_paiement)}{$moyen_paiement}{else}Non renseigné{/if}
-
- {if $operation.moyen_paiement == 'CH'}
- - Numéro de chèque
- - {if trim($operation.numero_cheque)}{$operation.numero_cheque}{else}Non renseigné{/if}
- {/if}
-
- {if $operation.moyen_paiement && $operation.moyen_paiement != 'ES'}
- - Compte bancaire
- - {$compte}
- {/if}
-
- - Catégorie
- -
- {if $categorie.type == Compta\Categories::DEPENSES}Dépense{else}Recette{/if} :
- {$categorie.intitule}
-
- {/if}
-
- - Exercice
- -
- {$exercice.libelle}
- | Du {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'}
- | {if $exercice.cloture}Clôturé{else}En cours{/if}
-
-
- {if $operation.id_projet}
- - Projet
- -
- {$projet.libelle}
-
- {/if}
-
- - Opération créée par
- -
- {if $operation.id_auteur}
- {if $session->canAccess('compta', Membres::DROIT_ACCES)}
- {$nom_auteur}
- {else}
- {$nom_auteur}
- {/if}
- {else}
- membre supprimé
- {/if}
-
-
- - Opération liée à
- -
- {if empty($related_members)}
- Aucun membre n'est lié à cette opération.
- {else}
- {foreach from=$related_members item="membre"}
- {if $membre.id_cotisation}Cotisation pour {/if}{$membre.identite}
- {/foreach}
- {/if}
-
-
- - Remarques
- - {if trim($operation.remarques)}{$operation.remarques}{else}Non renseigné{/if}
-
-
-
-
-
- Comptes |
- Débit |
- Crédit |
-
-
-
-
- {$operation.compte_debit} |
- {$nom_compte_debit} |
- {$operation.montant|escape|html_money} {$config.monnaie} |
- |
-
-
- {$operation.compte_credit} |
- {$nom_compte_credit} |
- |
- {$operation.montant|escape|html_money} {$config.monnaie} |
-
-
-
-
-{include file="admin/_foot.tpl"}
DELETED src/www/admin/compta/operations/voir.php
Index: src/www/admin/compta/operations/voir.php
==================================================================
--- src/www/admin/compta/operations/voir.php
+++ src/www/admin/compta/operations/voir.php
@@ -1,58 +0,0 @@
-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');