From: Sven Schöling Date: Sun, 6 Feb 2022 21:51:09 +0000 (+0100) Subject: DeliveryOrder: bei auslagern sofort löschen deaktivieren X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~10 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4004121c4a46303bf370998b207bea1de103e4e9;p=kivitendo-erp.git DeliveryOrder: bei auslagern sofort löschen deaktivieren --- diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index fc25fc019..a8b73aafe 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -1081,6 +1081,7 @@ sub action_transfer_stock { ->flash("info", t8("Stock transfered")) ->run('kivi.ActionBar.setDisabled', '#transfer_out_action', t8('The parts for this order have already been transferred')) ->run('kivi.ActionBar.setDisabled', '#transfer_in_action', t8('The parts for this order have already been transferred')) + ->run('kivi.ActionBar.setDisabled', '#delete_action', t8('The parts for this order have already been transferred')) ->replaceWith('#data-status-line', delivery_order_status_line($self->order)) ->render; @@ -1876,6 +1877,7 @@ sub setup_edit_action_bar { action => [ t8('Delete'), + id => 'delete_action', call => [ 'kivi.DeliveryOrder.delete_order' ], confirm => $::locale->text('Do you really want to delete this object?'), disabled => !$self->order->id ? t8('This object has not been saved yet.') :