Revision 22160ea4
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/DeliveryValueReport.pm | ||
---|---|---|
55 | 55 |
|
56 | 56 |
my $orderitems = $self->models->get; |
57 | 57 |
$self->calc_qtys_price($orderitems); |
58 |
$self->report_generator_list_objects(report => $self->{report}, objects => $orderitems); |
|
58 |
$self->setup_list_action_bar; |
|
59 |
$self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1); |
|
59 | 60 |
} |
60 | 61 |
|
61 | 62 |
sub prepare_report { |
... | ... | |
293 | 294 |
} |
294 | 295 |
} |
295 | 296 |
|
296 |
|
|
297 |
|
|
297 |
sub setup_list_action_bar { |
|
298 |
my ($self, %params) = @_; |
|
299 |
|
|
300 |
for my $bar ($::request->layout->get('actionbar')) { |
|
301 |
$bar->add( |
|
302 |
action => [ |
|
303 |
t8('Update'), |
|
304 |
submit => [ '#filter_form', { action => 'DeliveryValueReport/list' } ], |
|
305 |
accesskey => 'enter', |
|
306 |
], |
|
307 |
); |
|
308 |
} |
|
309 |
} |
|
298 | 310 |
|
299 | 311 |
1; |
300 | 312 |
|
templates/webpages/delivery_value_report/_filter.html | ||
---|---|---|
88 | 88 |
</tr> |
89 | 89 |
</table> |
90 | 90 |
|
91 |
[% L.hidden_tag('action', 'DeliveryValueReport/dispatch') %] |
|
92 | 91 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
93 | 92 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
94 | 93 |
[% L.hidden_tag('page', FORM.page) %] |
95 | 94 |
[% L.hidden_tag('vc', SELF.vc) %] |
96 |
[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%] |
|
97 | 95 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %] |
98 | 96 |
</div> |
99 | 97 |
|
Auch abrufbar als: Unified diff
ActionBar: Verwendung beim Lieferwertbericht