From 82684e3dd8e779081a7d8af2c24a477f107fc4a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 19 Sep 2011 11:12:36 +0200 Subject: [PATCH] chart of account suche in template ausgelagert --- bin/mozilla/ca.pl | 218 ++------------------------------ templates/webpages/ca/list.html | 96 ++++++++++++++ 2 files changed, 109 insertions(+), 205 deletions(-) create mode 100644 templates/webpages/ca/list.html diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl index 27070bb3f..fcff5cf33 100644 --- a/bin/mozilla/ca.pl +++ b/bin/mozilla/ca.pl @@ -149,215 +149,23 @@ sub chart_of_accounts { } sub list { - $main::lxdebug->enter_sub(); + $::lxdebug->enter_sub; + $::auth->assert('report'); - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; + $::form->{title} = $::locale->text('List Transactions') . " - " . $::locale->text('Account') . " $::form->{accno}"; - $main::auth->assert('report'); - - $form->{title} = $locale->text('List Transactions'); - $form->{title} .= " - " . $locale->text('Account') . " $form->{accno}"; - my $year = (localtime)[5] + 1900; - - # get departments - $form->all_departments(\%myconfig); - if (@{ $form->{all_departments} || [] }) { - $form->{selectdepartment} = "