From cfb029307ecd356f377952f3190df655cbd447c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 4 Apr 2022 12:16:13 +0200 Subject: [PATCH] Shopware6: Status completed innerhalb des Konnektors mappen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Zufälligerweise heißen die alle fast schon so wie vordefiniert, aber leider nicht ganz genauso ... --- SL/ShopConnector/Shopware6.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SL/ShopConnector/Shopware6.pm b/SL/ShopConnector/Shopware6.pm index f8a22a911..6d04a1b33 100644 --- a/SL/ShopConnector/Shopware6.pm +++ b/SL/ShopConnector/Shopware6.pm @@ -701,6 +701,9 @@ sub get_version { sub set_orderstatus { my ($self, $order_id, $transition) = @_; + # one state differs + $transition = 'complete' if $transition eq 'completed'; + croak "No shop order ID, should be in format [0-9a-f]{32}" unless $order_id =~ m/^[0-9a-f]{32}$/; croak "NO valid transition value" unless $transition =~ m/(open|process|cancel|complete)/; my $ret; -- 2.20.1