From 4004121c4a46303bf370998b207bea1de103e4e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Sun, 6 Feb 2022 22:51:09 +0100 Subject: [PATCH] =?utf8?q?DeliveryOrder:=20bei=20auslagern=20sofort=20l?= =?utf8?q?=C3=B6schen=20deaktivieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/DeliveryOrder.pm | 2 ++ 1 file changed, 2 insertions(+) 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.') : -- 2.20.1