Skip to content

Commit

Permalink
0063630: Rollback changes from 5bd0e46:"0063630: Update stock should …
Browse files Browse the repository at this point in the history
…respect BE setting ordernumber mapping"
  • Loading branch information
roman-wedemeier committed Jul 19, 2020
1 parent 731ea2c commit 9715579
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Services/ReadData/External/ReadStockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9715579

Please sign in to comment.