Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d2ed673e

Von Jan Büren vor mehr als 4 Jahren hinzugefügt

  • ID d2ed673eafba1bbfeeca578dc19cc630523ba0cf
  • Vorgänger 2a670c1c
  • Nachfolger 52b04172

Form: Backend-Funktion get_taxcharts entfernt

Toter Code, die ALL_TAXCHARTS werden nicht mehr verwendet
Aufruf auch in ar.pl entfernt

Unterschiede anzeigen:

SL/Form.pm
$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();
......
$self->_get_charts($dbh, $params{"charts"});
}
if ($params{"taxcharts"}) {
$self->_get_taxcharts($dbh, $params{"taxcharts"});
}
if ($params{"taxzones"}) {
$self->_get_taxzones($dbh, $params{"taxzones"});
}
bin/mozilla/ar.pl
"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;

Auch abrufbar als: Unified diff