X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FFinancialControllingReport.pm;h=7b392f184c492c7f47f87f786e932562f8ea56a2;hb=826d79929635c726f7459296fafa7e630c00e72d;hp=125a8a8559561d24bec5239c8b74522cd8815736;hpb=5534d9cb025cc4036f6fcce28a24c5e5b164641e;p=kivitendo-erp.git diff --git a/SL/Controller/FinancialControllingReport.pm b/SL/Controller/FinancialControllingReport.pm index 125a8a855..7b392f184 100644 --- a/SL/Controller/FinancialControllingReport.pm +++ b/SL/Controller/FinancialControllingReport.pm @@ -37,6 +37,7 @@ sub action_list { $self->calculate_data; + $self->setup_list_action_bar; $self->list_objects; } @@ -243,6 +244,7 @@ sub init_models { query => [ SL::DB::Manager::Order->type_filter('sales_order'), '!closed' => 1, + (salesman_id => SL::DB::Manager::Employee->current->id) x !$::auth->assert('sales_all_edit', 1), or => [ globalproject_id => undef, and => [ @@ -288,4 +290,18 @@ sub link_to { } } +sub setup_list_action_bar { + my ($self, %params) = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Update'), + submit => [ '#filter_form', { action => 'FinancialControllingReport/list' } ], + accesskey => 'enter', + ], + ); + } +} + 1;