From: Werner Hahn Date: Fri, 25 Jun 2021 06:26:53 +0000 (+0200) Subject: Shop: WooCommerce Syntaxfehler X-Git-Tag: kivitendo-mebil_0.1-0~9^2~134 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=73c26a9e27ac539457fe92f13e5548ae35dadd35;p=kivitendo-erp.git Shop: WooCommerce Syntaxfehler --- diff --git a/SL/ShopConnector/WooCommerce.pm b/SL/ShopConnector/WooCommerce.pm index c2e7c6fd4..d6e23f77a 100644 --- a/SL/ShopConnector/WooCommerce.pm +++ b/SL/ShopConnector/WooCommerce.pm @@ -32,6 +32,7 @@ sub get_one_order { if($answer->{success}) { my $shoporder = $answer->{data}; + $main::lxdebug->dump(0, 'WH: ANSWER ', $answer); $dbh->with_transaction( sub{ #update status on server $shoporder->{status} = "processing"; @@ -161,7 +162,7 @@ sub import_data_to_shop_order { $shop_order->positions($position-1); if ( $self->config->shipping_costs_parts_id ) { - my $shipping_part = SL::DB::Part->find_by( id => $self->config->shipping_costs_parts_id); + my $shipping_part = SL::DB::Manager::Part->find_by( id => $self->config->shipping_costs_parts_id); my %shipping_pos = ( description => $import->{data}->{dispatch}->{name}, partnumber => $shipping_part->partnumber, @@ -526,6 +527,7 @@ sub send_request { my %return; if($answer->is_success && $type eq 'application/json'){ my $data_json = $answer->content; + $main::lxdebug->dump(0, 'WH: JSON ', $data_json); my $json = SL::JSON::decode_json($data_json); %return = ( success => 1,