From: Werner Hahn Date: Sat, 13 Mar 2021 15:47:17 +0000 (+0100) Subject: SHOPOrders Status setzten bei Rechnungen korrigiert X-Git-Tag: kivitendo-mebil_0.1-0~9^2~371 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fa2cf4e6139505b9619efb296b2680c7fd664ae0;p=kivitendo-erp.git SHOPOrders Status setzten bei Rechnungen korrigiert --- diff --git a/SL/IS.pm b/SL/IS.pm index f9ff507eb..7cf800805 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1447,9 +1447,9 @@ SQL from => 'ShopOrder', via => ['DeliveryOrder','Order',], ); - if (scalar @linked_shop_orders == 1){ #do update my $shop_order = $linked_shop_orders[0][0]; + if ( $shop_order ) { require SL::Shop; my $shop_config = SL::DB::Manager::Shop->get_first( query => [ id => $shop_order->shop_id ] ); my $shop = SL::Shop->new( config => $shop_config );