X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fe8d8d4ff6102dbb02d456b45256697099beaa63..53593baa211863fbf66540cf1bcc36c8fb37257f:/SL/ShopConnector/Shopware6.pm 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;