From 7c61e9c7e761ba4df54eb94853651bbd7459eb12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 31 Jan 2022 08:40:21 +0100 Subject: [PATCH] DeliveryOrder: delete deaktivieren, wenn schon ausgelagert --- SL/Controller/DeliveryOrder.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index 79931fd89..8f3d838c8 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -1878,7 +1878,8 @@ sub setup_edit_action_bar { t8('Delete'), 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.') : undef, + disabled => !$self->order->id ? t8('This object has not been saved yet.') : + $self->order->delivered ? t8('The parts for this order have already been transferred') : undef, only_if => $self->type_data->show_menu("delete"), ], -- 2.20.1