X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8395e0d0b189f4b3c81c0fa82a285e9bdee192d2..f217d072d76183bc07723dcc29503b732bd2022d:/SL/Controller/FinancialControllingReport.pm diff --git a/SL/Controller/FinancialControllingReport.pm b/SL/Controller/FinancialControllingReport.pm index ab1192504..7dfb9243d 100644 --- a/SL/Controller/FinancialControllingReport.pm +++ b/SL/Controller/FinancialControllingReport.pm @@ -16,7 +16,7 @@ use Rose::Object::MakeMethods::Generic ( 'scalar --get_set_init' => [ qw(project_types models) ], ); -__PACKAGE__->run_before(sub { $::auth->assert('sales_order_edit'); }); +__PACKAGE__->run_before(sub { $::auth->assert('sales_financial_controlling'); }); my %sort_columns = ( ordnumber => t8('Order'), @@ -46,8 +46,9 @@ sub action_list { sub prepare_report { my ($self) = @_; - my $report = SL::ReportGenerator->new(\%::myconfig, $::form); - $self->{report} = $report; + my $report = SL::ReportGenerator->new(\%::myconfig, $::form); + $report->{title} = t8('Financial Controlling Report'); + $self->{report} = $report; my @columns = qw(customer globalprojectnumber globalproject_type transaction_description ordnumber net_amount delivered_amount delivered_amount_p billed_amount billed_amount_p paid_amount paid_amount_p billable_amount billable_amount_p other_amount); @@ -206,7 +207,7 @@ sub list_objects { $data->{$_}->{data} = $::form->format_amount(\%::myconfig, $data->{$_}->{data}, 2) for grep { !m/_p$/ } @{ $self->{number_columns} }; }; - return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data, action_bar => 1); + return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data); } sub make_filter_summary { @@ -277,8 +278,7 @@ sub link_to { if ($object->isa('SL::DB::Order')) { my $type = $object->type; my $id = $object->id; - - return "oe.pl?action=$action&type=$type&vc=customer&id=$id"; + return "controller.pl?action=Order/$action&type=$type&id=$id"; } if ($object->isa('SL::DB::Customer')) { my $id = $object->id;