X-Git-Url: https://git.cyclocoop.org/?p=garradin.git;a=blobdiff_plain;f=www%2Fadmin%2Fcompta%2Foperations%2Fvoir.php;h=ea02e7f9edef273c107b8c52071f166dc6d770f1;hp=57d2ca336cde9fbdc810b95f6043cd8009e5e6b2;hb=f7ee0ae730f47bfef173c394fa4db71a22dece61;hpb=1ab3343a95ed3ef4958d91dfbf49372dce8a092e diff --git a/www/admin/compta/operations/voir.php b/www/admin/compta/operations/voir.php index 57d2ca3..ea02e7f 100644 --- a/www/admin/compta/operations/voir.php +++ b/www/admin/compta/operations/voir.php @@ -15,11 +15,13 @@ $exercices = new Compta_Exercices; $tpl->assign('operation', $operation); -$credit = $comptes->get($operation['compte_credit']); -$tpl->assign('nom_compte_credit', $credit['libelle']); - -$debit = $comptes->get($operation['compte_debit']); -$tpl->assign('nom_compte_debit', $debit['libelle']); +foreach ($operation['fluxs'] as $key => &$flux) +{ + $compte = $comptes->get($flux['compte']); + $flux['compte_libelle'] = $compte['libelle']; + $flux['montant_oppose'] = - $flux['montant']; +} +$tpl->assign('fluxs', $operation['fluxs']); $tpl->assign('exercice', $exercices->get($operation['id_exercice'])); @@ -50,4 +52,4 @@ if ($operation['id_auteur']) $tpl->display('admin/compta/operations/voir.tpl'); -?> \ No newline at end of file +?>