Das submit, das die Umwandlung der Rechnungen startet, kann direkt über die
ActionBar angegeben werden. Damit fällt die js-Funktion ganz weg.
],
action => [
t8("Create and print invoices for all selected delivery orders"),
- call => [ 'kivi.MassInvoiceCreatePrint.submitMassCreationForm' ],
+ submit => [ 'form', { action => 'MassInvoiceCreatePrint/create_invoices' } ],
disabled => !$params{num_rows} ? $::locale->text('The report doesn\'t contain entries.') : undef,
only_if => $params{show_creation_buttons},
checks => [ 'kivi.MassInvoiceCreatePrint.checkDeliveryOrderSelection' ],
return false;
};
- this.submitMassCreationForm = function() {
- kivi.submit_form_with_action('form', 'MassInvoiceCreatePrint/create_invoices');
- return false;
- };
-
this.createPrintAllInitialize = function() {
kivi.popup_dialog({
id: 'create_print_all_dialog',