From d2ed673eafba1bbfeeca578dc19cc630523ba0cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 11 Aug 2020 08:59:00 +0200 Subject: [PATCH] Form: Backend-Funktion get_taxcharts entfernt Toter Code, die ALL_TAXCHARTS werden nicht mehr verwendet Aufruf auch in ar.pl entfernt --- SL/Form.pm | 34 ---------------------------------- bin/mozilla/ar.pl | 3 +-- 2 files changed, 1 insertion(+), 36 deletions(-) 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; -- 2.20.1