Browse Source

[Backend] Produit correcitf affichage prix + Réduc prix de vente souhaité

develop
Fabien Normand 2 years ago
parent
commit
7b703e48dd
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      Transformer/Order/OrderShopTransformer.php

+ 5
- 5
Transformer/Order/OrderShopTransformer.php View File

@@ -59,13 +59,13 @@ class OrderShopTransformer

$i = 0;

$orderProductsByParentCategory = $this->orderShopSolver->getOrderProductsByParentCategory($orderShop);
foreach ($orderProductsByParentCategory as $labelCategory => $orderProducts) {
foreach ($orderProducts as $orderProduct) {
// $orderProductsByParentCategory = $this->orderShopSolver->getOrderProductsByParentCategory($orderShop);
// foreach ($orderProductsByParentCategory as $labelCategory => $orderProducts) {
foreach ($orderShop->getOrderProducts() as $orderProduct) {
$data['orderProducts'][$i]['id'] = $orderProduct->getId();
$data['orderProducts'][$i]['product'] = $orderProduct->getProduct()->getId();
$data['orderProducts'][$i]['quantityOrder'] = $orderProduct->getQuantityOrder();
$data['orderProducts'][$i]['labelCategory'] = $labelCategory;
// $data['orderProducts'][$i]['labelCategory'] = $labelCategory;
$data['orderProducts'][$i]['title'] = $orderProduct->getTitle();
$data['orderProducts'][$i]['price'] = $this->priceSolver->getPrice($orderProduct);
$data['orderProducts'][$i]['priceWithTax'] = $this->priceSolver->getPriceWithTax($orderProduct);
@@ -78,7 +78,7 @@ class OrderShopTransformer
);
$i++;
}
}
// }

return $data;
}

Loading…
Cancel
Save