From: Sven Schöling Date: Mon, 31 Jan 2022 07:40:21 +0000 (+0100) Subject: DeliveryOrder: delete deaktivieren, wenn schon ausgelagert X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~15 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7c61e9c7e761ba4df54eb94853651bbd7459eb12;p=kivitendo-erp.git DeliveryOrder: delete deaktivieren, wenn schon ausgelagert --- 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"), ],