From: Jan Büren Date: Tue, 11 Aug 2020 06:59:00 +0000 (+0200) Subject: Form: Backend-Funktion get_taxcharts entfernt X-Git-Tag: release-3.5.6.1~76 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d2ed673eafba1bbfeeca578dc19cc630523ba0cf;p=kivitendo-erp.git Form: Backend-Funktion get_taxcharts entfernt Toter Code, die ALL_TAXCHARTS werden nicht mehr verwendet Aufruf auch in ar.pl entfernt --- diff --git a/SL/Form.pm b/SL/Form.pm index be88b28cb..c758659d4 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -2113,36 +2113,6 @@ sub _get_charts { $main::lxdebug->leave_sub(); } -sub _get_taxcharts { - $main::lxdebug->enter_sub(); - - my ($self, $dbh, $params) = @_; - - my $key = "all_taxcharts"; - my @where; - - if (ref $params eq 'HASH') { - $key = $params->{key} if ($params->{key}); - if ($params->{module} eq 'AR') { - push @where, 'chart_categories ~ \'[ACILQ]\''; - - } elsif ($params->{module} eq 'AP') { - push @where, 'chart_categories ~ \'[ACELQ]\''; - } - - } elsif ($params) { - $key = $params; - } - - my $where = @where ? ' WHERE ' . join(' AND ', map { "($_)" } @where) : ''; - - my $query = qq|SELECT * FROM tax $where ORDER BY taxkey, rate|; - - $self->{$key} = selectall_hashref_query($self, $dbh, $query); - - $main::lxdebug->leave_sub(); -} - sub _get_taxzones { $main::lxdebug->enter_sub(); @@ -2397,10 +2367,6 @@ sub get_lists { $self->_get_charts($dbh, $params{"charts"}); } - if ($params{"taxcharts"}) { - $self->_get_taxcharts($dbh, $params{"taxcharts"}); - } - if ($params{"taxzones"}) { $self->_get_taxzones($dbh, $params{"taxzones"}); } diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index fa3c12704..ba70adb1d 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -387,8 +387,7 @@ sub form_header { "old_id" => \@old_project_ids }, "charts" => { "key" => "ALL_CHARTS", "transdate" => $form->{transdate} }, - "taxcharts" => { "key" => "ALL_TAXCHARTS", - "module" => "AR" },); + ); $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;