From: Werner Hahn Date: Wed, 27 Jan 2021 08:49:28 +0000 (+0100) Subject: ShopApi: statussetzen bei Rechnung schreiben Syntaxfehler behoben X-Git-Tag: kivitendo-mebil_0.1-0~9^2~372 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6dc9c1d9139d4db29eb4bafb8a3d5f57c8282e69;p=kivitendo-erp.git ShopApi: statussetzen bei Rechnung schreiben Syntaxfehler behoben --- diff --git a/SL/IS.pm b/SL/IS.pm index bda82bc76..f9ff507eb 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1445,12 +1445,12 @@ SQL my $invoice = SL::DB::Invoice->new( id => $form->{id} )->load; my @linked_shop_orders = $invoice->linked_records( from => 'ShopOrder', - via => ['Order', 'DeliveryOrder'], + via => ['DeliveryOrder','Order',], ); if (scalar @linked_shop_orders == 1){ #do update my $shop_order = $linked_shop_orders[0][0]; - require SL::Shop; + 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 ); $shop->connector->set_orderstatus($shop_order->shop_trans_id, "completed");