X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fca.pl;h=4bef1d2ee147c0fa1ce7e3920659f8433ba2094a;hb=2647d6943850866ac437660e0a16ea965c01c22b;hp=4cababbe641bb6ee8729418c96405268fc037914;hpb=e14cb525c640cb15bb6b2dfb62ccebbe78cb45cd;p=kivitendo-erp.git diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl index 4cababbe6..4bef1d2ee 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"; @@ -152,12 +153,11 @@ sub list { $::lxdebug->enter_sub; $::auth->assert('report'); - $::form->{title} = $::locale->text('List Transactions') . " - " . $::locale->text('Account') . " $::form->{accno}"; + $::form->{title} = $::locale->text('List Transactions') . " - " . $::locale->text('Account') . " $::form->{accno}" . " - " . $::form->{description}; $::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);