X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fca.pl;h=da3bfb029fc846e13170d28b6478bbafde39c1c5;hb=980dc53321ae6c2d3e448b6ca2a0c7d11a65ee8c;hp=ecce874295f8e12d98091f02e7c80d72632b2e8d;hpb=1df2efffbb760f0c7ad5e32e40807beadc227b80;p=kivitendo-erp.git diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl index ecce87429..da3bfb029 100644 --- a/bin/mozilla/ca.pl +++ b/bin/mozilla/ca.pl @@ -84,7 +84,8 @@ sub chart_of_accounts { $form->{title} = $locale->text('Chart of Accounts'); - if ($::lx_office_conf{system}->{eur}) { + if ( $::instance_conf->get_accounting_method eq 'cash' ) { + # $form->{method} can probably be made redundant now that we have get_accounting_method $form->{method} = "cash"; } @@ -148,215 +149,17 @@ sub chart_of_accounts { } sub list { - $main::lxdebug->enter_sub(); - - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; - - $main::auth->assert('report'); - - $form->{title} = $locale->text('List Transactions'); - $form->{title} .= " - " . $locale->text('Account') . " $form->{accno}"; - my $year = (localtime)[5] + 1900; + $::lxdebug->enter_sub; + $::auth->assert('report'); - # get departments - $form->all_departments(\%myconfig); - if (@{ $form->{all_departments} || [] }) { - $form->{selectdepartment} = "