X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FSellPriceInformation.pm;h=ccb0d5fcce07a51fdab110f557d82be41da2734f;hb=5474d397bbc42ffaea0b51ebb4bb9a4c7afaa881;hp=ddaf7654952c0f1a8d5a981eb8c76d7020c98afb;hpb=c2b696438dc7c9e4b0bc7644f73604ccfdb22ee7;p=kivitendo-erp.git diff --git a/SL/Controller/SellPriceInformation.pm b/SL/Controller/SellPriceInformation.pm index ddaf76549..ccb0d5fcc 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; } @@ -137,7 +140,11 @@ sub link_to { my $vc = $object->is_sales ? 'customer' : 'vendor'; my $id = $object->id; - return "oe.pl?action=$action&type=$type&vc=$vc&id=$id"; + if ($::instance_conf->get_feature_experimental_order) { + return "controller.pl?action=Order/$action&type=$type&id=$id"; + } else { + return "oe.pl?action=$action&type=$type&vc=$vc&id=$id"; + } } if ($object->isa('SL::DB::Customer')) { my $id = $object->id; @@ -162,9 +169,8 @@ 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; + push @texts, [ $::locale->text('Page'), $::locale->text($self->{pages}{cur}) ] if $self->{pages}{cur} > 1; return join '; ', map { "$_->[0]: $_->[1]" } @texts; }