Revision 9a3c56c2
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
365 | 365 |
submit => [ '#form' ], |
366 | 366 |
accesskey => 'enter', |
367 | 367 |
], |
368 |
|
|
369 |
'separator', |
|
370 |
|
|
371 |
link => [ |
|
372 |
t8('Add'), |
|
373 |
link => 'do.pl?action=add&type=' . E($::form->{type}), |
|
374 |
not_if => ($::form->{type} eq 'purchase_delivery_order') && !$::instance_conf->get_allow_new_purchase_delivery_order, |
|
375 |
], |
|
368 | 376 |
); |
369 | 377 |
} |
370 | 378 |
} |
... | ... | |
374 | 382 |
|
375 | 383 |
for my $bar ($::request->layout->get('actionbar')) { |
376 | 384 |
$bar->add( |
377 |
action => [ |
|
378 |
t8('New invoice'), |
|
379 |
submit => [ '#form', { action => 'invoice_multi' } ], |
|
380 |
checks => [ [ 'kivi.check_if_entries_selected', '#form tbody input[type=checkbox]' ] ], |
|
381 |
accesskey => 'enter', |
|
382 |
], |
|
383 | 385 |
action => [ |
384 | 386 |
t8('Print'), |
385 | 387 |
call => [ 'kivi.SalesPurchase.show_print_dialog', 'js:kivi.MassDeliveryOrderPrint.submitMultiOrders' ], |
386 | 388 |
checks => [ [ 'kivi.check_if_entries_selected', '#form tbody input[type=checkbox]' ] ], |
387 | 389 |
], |
390 |
|
|
391 |
'separator', |
|
392 |
|
|
393 |
@{ $params{report_generator_actions} }, |
|
394 |
|
|
395 |
combobox => [ |
|
396 |
link => [ |
|
397 |
t8('Add'), |
|
398 |
link => 'do.pl?action=add&type=' . E($::form->{type}), |
|
399 |
not_if => ($::form->{type} eq 'purchase_delivery_order') && !$::instance_conf->get_allow_new_purchase_delivery_order, |
|
400 |
], |
|
401 |
|
|
402 |
action => [ |
|
403 |
t8('Merge selected entries into new invoice'), |
|
404 |
submit => [ '#form', { action => 'invoice_multi' } ], |
|
405 |
checks => [ [ 'kivi.check_if_entries_selected', '#form tbody input[type=checkbox]' ] ], |
|
406 |
], |
|
407 |
], |
|
388 | 408 |
); |
389 | 409 |
} |
390 | 410 |
} |
... | ... | |
856 | 876 |
$idx++; |
857 | 877 |
} |
858 | 878 |
|
859 |
setup_do_orders_action_bar(); |
|
860 |
|
|
861 |
$report->generate_with_headers(); |
|
879 |
$report->generate_with_headers(action_bar_setup_hook => sub { setup_do_orders_action_bar(report_generator_actions => \@_) }); |
|
862 | 880 |
|
863 | 881 |
$main::lxdebug->leave_sub(); |
864 | 882 |
} |
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Ein-/Verkauf« → »Lieferscheine« umgestellt