From: Jan Büren Date: Mon, 4 Apr 2022 10:16:13 +0000 (+0200) Subject: Shopware6: Status completed innerhalb des Konnektors mappen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~67 X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=commitdiff_plain;h=cfb029307ecd356f377952f3190df655cbd447c6;ds=sidebyside Shopware6: Status completed innerhalb des Konnektors mappen Zufälligerweise heißen die alle fast schon so wie vordefiniert, aber leider nicht ganz genauso ... --- 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;