From ccbd0240ff944d1fd484c8744349e052df1613fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 23 Feb 2018 15:28:47 +0100 Subject: [PATCH] Auftrags-Controller: Workflow Angebot->Auftrag nur, wenn gespeichert --- SL/Controller/Order.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 8ee73f9c8..b87049a0a 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1423,13 +1423,15 @@ sub _setup_edit_action_bar { ], action => [ t8('Sales Order'), - submit => [ '#order_form', { action => "Order/sales_order" } ], - only_if => (any { $self->type eq $_ } (_sales_quotation_type())), + submit => [ '#order_form', { action => "Order/sales_order" } ], + only_if => (any { $self->type eq $_ } (_sales_quotation_type())), + disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, ], action => [ t8('Purchase Order'), - submit => [ '#order_form', { action => "Order/purchase_order" } ], - only_if => (any { $self->type eq $_ } (_request_quotation_type())), + submit => [ '#order_form', { action => "Order/purchase_order" } ], + only_if => (any { $self->type eq $_ } (_request_quotation_type())), + disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, ], ], # end of combobox "Workflow" -- 2.20.1