X-Git-Url: https://git.cyclocoop.org/?p=garradin.git;a=blobdiff_plain;f=www%2Fadmin%2Fcompta%2Fexercices%2Fjournal.php;h=af51a83f21dceb4dafe9a7dd1c44095322bfb0c9;hp=888501243d5f01f9e47db98bc50bc66b59b0d1c1;hb=f7ee0ae730f47bfef173c394fa4db71a22dece61;hpb=1ab3343a95ed3ef4958d91dfbf49372dce8a092e diff --git a/www/admin/compta/exercices/journal.php b/www/admin/compta/exercices/journal.php index 8885012..af51a83 100644 --- a/www/admin/compta/exercices/journal.php +++ b/www/admin/compta/exercices/journal.php @@ -24,11 +24,25 @@ function get_nom_compte($compte) } $tpl->register_modifier('get_nom_compte', 'Garradin\get_nom_compte'); -$tpl->assign('journal', $exercices->getJournal($exercice['id'])); +$journal = $exercices->getJournal($exercice['id']); +$id = -1; +foreach ($journal as &$ligne) +{ + if ($ligne['id'] == $id) + { + unset($ligne['date']); + unset($ligne['libelle']); + } + else + { + $id = $ligne['id']; + } +} +$tpl->assign('journal', $journal); $tpl->assign('cloture', $exercice['cloture'] ? $exercice['fin'] : time()); $tpl->assign('exercice', $exercice); $tpl->display('admin/compta/exercices/journal.tpl'); -?> \ No newline at end of file +?>