Revision 7ebffd0d
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
submit => [ '#form' ],
|
||
accesskey => 'enter',
|
||
],
|
||
|
||
'separator',
|
||
|
||
link => [
|
||
t8('Add'),
|
||
link => 'oe.pl?action=add&type=' . E($::form->{type}),
|
||
],
|
||
);
|
||
}
|
||
}
|
||
... | ... | |
sub setup_oe_orders_action_bar {
|
||
my %params = @_;
|
||
|
||
return unless $::form->{type} eq 'sales_order';
|
||
|
||
for my $bar ($::request->layout->get('actionbar')) {
|
||
$bar->add(
|
||
action => [
|
||
t8('New sales order'),
|
||
submit => [ '#form', { action => 'edit' } ],
|
||
checks => [ [ 'kivi.check_if_entries_selected', '[name^=multi_id_]' ] ],
|
||
accesskey => 'enter',
|
||
],
|
||
@{ $params{report_generator_actions} },
|
||
|
||
'separator',
|
||
|
||
combobox => [
|
||
link => [
|
||
t8('Add'),
|
||
link => 'oe.pl?action=add&type=' . E($::form->{type}),
|
||
],
|
||
|
||
action => [
|
||
t8('Merge selected entries into new order'),
|
||
submit => [ '#form', { action => 'edit' } ],
|
||
checks => [ [ 'kivi.check_if_entries_selected', '[name^=multi_id_]' ] ],
|
||
only_if => $::form->{type} eq 'sales_order',
|
||
],
|
||
], # end of combobox "add"
|
||
);
|
||
}
|
||
}
|
||
... | ... | |
$report->add_separator();
|
||
$report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
|
||
|
||
setup_oe_orders_action_bar();
|
||
$report->generate_with_headers();
|
||
$report->generate_with_headers(action_bar_setup_hook => sub { setup_oe_orders_action_bar(report_generator_actions => \@_) });
|
||
|
||
$main::lxdebug->leave_sub();
|
||
}
|
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Verkauf« → »Angebote/Aufträge« umgestellt