Revision 93e78f47
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
- ID 93e78f47ff035469d88ccdb9ffb152a6a2483806
- Vorgänger b65a8b5c
SL/Controller/Inventory.pm | ||
---|---|---|
367 | 367 |
|
368 | 368 |
$report->set_options('raw_bottom_info_text' => $self->render('inventory/report_bottom', { output => 0 }) ); |
369 | 369 |
} |
370 |
$report->generate_with_headers(); |
|
370 |
|
|
371 |
$report->generate_with_headers(action_bar_setup_hook => sub { $self->setup_usage_action_bar(report_generator_actions => \@_) }); |
|
371 | 372 |
|
372 | 373 |
$main::lxdebug->leave_sub(); |
373 | 374 |
|
... | ... | |
648 | 649 |
submit => [ '#form', { action => 'Inventory/usage' } ], |
649 | 650 |
accesskey => 'enter', |
650 | 651 |
], |
652 |
|
|
653 |
'separator', |
|
654 |
|
|
655 |
combobox => [ |
|
656 |
action => [ t8('Warehouse') ], |
|
657 |
|
|
658 |
link => [ |
|
659 |
t8('Stock'), |
|
660 |
link => $self->url_for(action => 'stock_in'), |
|
661 |
], |
|
662 |
|
|
663 |
link => [ |
|
664 |
t8('Produce Assembly'), |
|
665 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
666 |
], |
|
667 |
|
|
668 |
link => [ |
|
669 |
t8('Transfer'), |
|
670 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
671 |
], |
|
672 |
|
|
673 |
link => [ |
|
674 |
t8('Removal'), |
|
675 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
676 |
], |
|
677 |
|
|
678 |
], # end of combobox "Warehouse" |
|
679 |
); |
|
680 |
} |
|
681 |
} |
|
682 |
|
|
683 |
sub setup_usage_action_bar { |
|
684 |
my ($self, %params) = @_; |
|
685 |
|
|
686 |
for my $bar ($::request->layout->get('actionbar')) { |
|
687 |
$bar->add( |
|
688 |
@{ $params{report_generator_actions} }, |
|
689 |
|
|
690 |
combobox => [ |
|
691 |
action => [ t8('Warehouse') ], |
|
692 |
|
|
693 |
link => [ |
|
694 |
t8('Stock'), |
|
695 |
link => $self->url_for(action => 'stock_in'), |
|
696 |
], |
|
697 |
|
|
698 |
link => [ |
|
699 |
t8('Produce Assembly'), |
|
700 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
701 |
], |
|
702 |
|
|
703 |
link => [ |
|
704 |
t8('Transfer'), |
|
705 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
706 |
], |
|
707 |
|
|
708 |
link => [ |
|
709 |
t8('Removal'), |
|
710 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
711 |
], |
|
712 |
|
|
713 |
], # end of combobox "Warehouse" |
|
651 | 714 |
); |
652 | 715 |
} |
653 | 716 |
} |
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Lager« → * umgestellt