X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fca.pl;h=c2fd6a218fda525373143ab36e10114c67b58f65;hb=1cc72c5b3b422fcd5970b3072d0d922d89fffc13;hp=4cababbe641bb6ee8729418c96405268fc037914;hpb=fc41222c61dbee590005f04c50e8603581462543;p=kivitendo-erp.git diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl index 4cababbe6..c2fd6a218 100644 --- a/bin/mozilla/ca.pl +++ b/bin/mozilla/ca.pl @@ -35,6 +35,7 @@ use POSIX qw(strftime); use SL::CA; +use SL::DB::Default; use SL::ReportGenerator; require "bin/mozilla/reportgenerator.pl"; @@ -157,7 +158,6 @@ sub list { $::form->header; print $::form->parse_html_template('ca/list', { year => DateTime->today->year, - cash => $::instance_conf->get_accounting_method eq 'cash', }); $::lxdebug->leave_sub; @@ -187,6 +187,7 @@ sub list_transactions { my $form = $main::form; my %myconfig = %main::myconfig; my $locale = $main::locale; + my $defaults = SL::DB::Default->get; $main::auth->assert('report'); @@ -332,7 +333,7 @@ sub list_transactions { $form->{print_date} = $locale->text('Create Date') . " " . $locale->date(\%myconfig, $form->current_date(\%myconfig), 0); push (@options, $form->{print_date}); - $form->{company} = $locale->text('Company') . " " . $myconfig{company}; + $form->{company} = $locale->text('Company') . " " . $defaults->company; push (@options, $form->{company}); my @columns = qw(transdate reference description gegenkonto debit credit ustkonto ustrate balance);