From fa2cf4e6139505b9619efb296b2680c7fd664ae0 Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Sat, 13 Mar 2021 16:47:17 +0100 Subject: [PATCH] SHOPOrders Status setzten bei Rechnungen korrigiert --- SL/IS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1