diff --git a/Services/ReadData/External/ReadStockService.php b/Services/ReadData/External/ReadStockService.php index e0eeeea..c8847d2 100644 --- a/Services/ReadData/External/ReadStockService.php +++ b/Services/ReadData/External/ReadStockService.php @@ -52,13 +52,7 @@ public function transform(array $products) continue; } - if((int)$this->config['ordernumberMapping'] === 1) { - $articleIdentifier = $product['Anr']; - } else { - $articleIdentifier = $product["ProductID"]; - } - - $articleStocks[] = new $this->targetEntity($articleIdentifier, intval($product["Quantity"])); + $articleStocks[] = new $this->targetEntity($product["ProductID"], intval($product["Quantity"])); } return $articleStocks;