@@ -55,10 +55,10 @@ discard block |
||
55 | 55 | $this->orderProductQueueService->addProductToQueue($OProduct); |
56 | 56 | } |
57 | 57 | |
58 | - private function checkInventory(OrderProduct &$orderProduct) |
|
58 | + private function checkInventory(OrderProduct & $orderProduct) |
|
59 | 59 | { |
60 | 60 | $order = $orderProduct->getOrder(); |
61 | - $product = $orderProduct->getProduct(); |
|
61 | + $product = $orderProduct->getProduct(); |
|
62 | 62 | |
63 | 63 | if ($order->getOrderType() == 'sale' && !$orderProduct->getOutInventory()) |
64 | 64 | $orderProduct->setOutInventory($product->getDefaultOutInventory()); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $this->checkInventory($orderProduct); |
79 | 79 | foreach ($subProducts as $subproduct) { |
80 | 80 | $product = $this->manager->getRepository(Product::class)->find($subproduct['product']); |
81 | - $productGroup = $this->manager->getRepository(ProductGroup::class)->find($subproduct['productGroup']); |
|
81 | + $productGroup = $this->manager->getRepository(ProductGroup::class)->find($subproduct['productGroup']); |
|
82 | 82 | $this->addSubproduct($orderProduct, $product, $productGroup, $subproduct['quantity']); |
83 | 83 | } |
84 | 84 | $this->orderProductQueueService->addProductToQueue($orderProduct); |