From: Bernd Bleßmann Date: Fri, 20 Nov 2020 15:45:18 +0000 (+0100) Subject: Massenerstellen von Rechnungen aus LS: sumbit direkt von der Aktion machen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~632 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d8930664e7d3798dd2f60cb572e11d889d5f74c3;p=kivitendo-erp.git Massenerstellen von Rechnungen aus LS: sumbit direkt von der Aktion machen Das submit, das die Umwandlung der Rechnungen startet, kann direkt über die ActionBar angegeben werden. Damit fällt die js-Funktion ganz weg. --- diff --git a/SL/Controller/MassInvoiceCreatePrint.pm b/SL/Controller/MassInvoiceCreatePrint.pm index b0c2e5c98..c85d0e638 100644 --- a/SL/Controller/MassInvoiceCreatePrint.pm +++ b/SL/Controller/MassInvoiceCreatePrint.pm @@ -377,7 +377,7 @@ sub setup_list_sales_delivery_orders_action_bar { ], 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' ], diff --git a/js/kivi.MassInvoiceCreatePrint.js b/js/kivi.MassInvoiceCreatePrint.js index 69260828a..4a9ba9fe1 100644 --- a/js/kivi.MassInvoiceCreatePrint.js +++ b/js/kivi.MassInvoiceCreatePrint.js @@ -20,11 +20,6 @@ namespace('kivi.MassInvoiceCreatePrint', function(ns) { 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',