Shop: Not Yet Implemented Errors falls eine Shopware6 Config gespeichert wird
authorJan Büren <jan@kivitendo.de>
Thu, 18 Nov 2021 09:32:28 +0000 (10:32 +0100)
committerJan Büren <jan@kivitendo.de>
Fri, 11 Feb 2022 14:19:56 +0000 (15:19 +0100)
SL/DB/Shop.pm

index e75f17c..efa54c7 100644 (file)
@@ -23,6 +23,13 @@ sub validate {
   push @errors, $::locale->text('The Host Name seems invalid') unless $self->{server} =~ m/[0-9A-Za-z].\.[0-9A-Za-z]/;
   push @errors, $::locale->text('Orders to fetch neeeds a positive Integer')
                                                                unless $self->{orders_to_fetch} > 0;
+
+  # not yet implemented checks
+  push @errors, $::locale->text('Transaction Description is not yet implemented')   if $self->{transaction_description};
+  if ($self->{connector} eq 'shopware6') {
+    push @errors, $::locale->text('Shipping cost article not implemented')          if $self->{shipping_costs_parts_id};
+    push @errors, $::locale->text('Fetch from last order number not implemented')   if $self->{last_order_number};
+  }
   return @errors;
 }