소스 검색

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

develop
Fabien Normand 2 년 전
부모
커밋
7b703e48dd
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +5
    -5
      Transformer/Order/OrderShopTransformer.php

+ 5
- 5
Transformer/Order/OrderShopTransformer.php 파일 보기

@@ -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…
취소
저장