Browse Source

[Administration] Correctif OrderController ($product->getPrice())

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
37ea1b7bb3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      backend/controllers/OrderController.php

+ 2
- 1
backend/controllers/OrderController.php View File

@@ -888,6 +888,7 @@ class OrderController extends BackendController
$pointSaleManager = $this->getPointSaleManager();
$userPointSaleManager = $this->getUserPointSaleManager();
$creditHistoryManager = $this->getCreditHistoryManager();
$productManager = $this->getProductManager();

$request = \Yii::$app->request;
$date = $request->post('date');
@@ -965,7 +966,7 @@ class OrderController extends BackendController
if ($dataProductOrder->price) {
$productOrder->price = $dataProductOrder->price;
} else {
$productOrder->price = $product->getPrice([
$productOrder->price = $productManager->getPrice($product, [
'user' => $user,
'user_producer' => $userProducer,
'point_sale' => $order->pointSale,

Loading…
Cancel
Save