]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/CsvImport/Order.pm
Part Controller - id -> part.id
[mfinanz.git] / SL / Controller / CsvImport / Order.pm
index 6ee6ca18d3a54185659ed2cd4b65ad7e173ffee6..68863094f04f3afa5b320303b8e603b3bfb2f34d 100644 (file)
@@ -477,6 +477,11 @@ sub check_part {
     return 0;
   }
 
     return 0;
   }
 
+  if ($self->parts_by->{id}->{ $object->parts_id }->obsolete) {
+    push @{ $entry->{errors} }, $::locale->text('Error: Part is obsolete');
+    return 0;
+  }
+
   return 1;
 }
 
   return 1;
 }