From b6d9b1432ff9096a487749af296110964dfaab2c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 7 Jun 2016 11:23:55 +0200 Subject: [PATCH] =?utf8?q?Verkaufspreisinformationen:=20Typfilter=20in=20d?= =?utf8?q?er=20=C3=9Cberschrift=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Dadurch wird auf einen Blick etwas klarer, was die Tabelle anzeigt. --- SL/Controller/SellPriceInformation.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SL/Controller/SellPriceInformation.pm b/SL/Controller/SellPriceInformation.pm index 5ba23efe7..b0e96c3af 100644 --- a/SL/Controller/SellPriceInformation.pm +++ b/SL/Controller/SellPriceInformation.pm @@ -96,6 +96,9 @@ sub prepare_report { my $report = SL::ReportGenerator->new(\%::myconfig, $::form); $self->{report} = $report; + my $title = $::locale->text('Sales Price information'); + $title .= ': ' . $::locale->text($::form->{filter}->{order}{type}) if $::form->{filter}->{order}{type}; + my @columns = qw(transdate ordnumber customer ship qty sellprice discount amount); my @visible = qw(transdate ordnumber customer ship qty sellprice discount amount); my @sortable = qw(transdate ordnumber customer sellprice discount ); @@ -121,7 +124,7 @@ sub prepare_report { %{ $params{report_generator_options} || {} }, output_format => 'HTML', top_info_text => $self->displayable_filter($::form->{filter}), - title => $::locale->text('Sales Price information'), + title => $title, ); $report->set_options_from_form; } @@ -162,7 +165,6 @@ sub displayable_filter { my $column_defs = $self->column_defs; my @texts; - push @texts, [ $::locale->text('Type'), $::locale->text($filter->{order}{type}) ] if $filter->{order}{type}; push @texts, [ $::locale->text('Sort By'), $column_defs->{$self->{sort_by}}{text} ] if $column_defs->{$self->{sort_by}}{text}; push @texts, [ $::locale->text('Page'), $::locale->text($self->{pages}{cur}) ] if $self->{pages}{cur} > 1; -- 2.20.1