Revision 8395e0d0
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/FinancialControllingReport.pm | ||
---|---|---|
37 | 37 |
|
38 | 38 |
$self->calculate_data; |
39 | 39 |
|
40 |
$self->setup_list_action_bar; |
|
40 | 41 |
$self->list_objects; |
41 | 42 |
} |
42 | 43 |
|
... | ... | |
205 | 206 |
$data->{$_}->{data} = $::form->format_amount(\%::myconfig, $data->{$_}->{data}, 2) for grep { !m/_p$/ } @{ $self->{number_columns} }; |
206 | 207 |
}; |
207 | 208 |
|
208 |
return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data); |
|
209 |
return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data, action_bar => 1);
|
|
209 | 210 |
} |
210 | 211 |
|
211 | 212 |
sub make_filter_summary { |
... | ... | |
289 | 290 |
} |
290 | 291 |
} |
291 | 292 |
|
293 |
sub setup_list_action_bar { |
|
294 |
my ($self, %params) = @_; |
|
295 |
|
|
296 |
for my $bar ($::request->layout->get('actionbar')) { |
|
297 |
$bar->add( |
|
298 |
action => [ |
|
299 |
t8('Update'), |
|
300 |
submit => [ '#filter_form', { action => 'FinancialControllingReport/list' } ], |
|
301 |
accesskey => 'enter', |
|
302 |
], |
|
303 |
); |
|
304 |
} |
|
305 |
} |
|
306 |
|
|
292 | 307 |
1; |
templates/webpages/financial_controlling_report/_filter.html | ||
---|---|---|
45 | 45 |
</tr> |
46 | 46 |
</table> |
47 | 47 |
|
48 |
[% L.hidden_tag('action', 'FinancialControllingReport/dispatch') %] |
|
49 | 48 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
50 | 49 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
51 | 50 |
[% L.hidden_tag('page', FORM.page) %] |
52 |
[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%] |
|
53 | 51 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %] |
54 |
|
|
55 | 52 |
</div> |
56 | 53 |
|
57 | 54 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung beim Finanzcontrollingbericht