浏览代码

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

feature/souke
Guillaume Bourgeois 1年前
父节点
当前提交
37ea1b7bb3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      backend/controllers/OrderController.php

+ 2
- 1
backend/controllers/OrderController.php 查看文件

@@ -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,

正在加载...
取消
保存