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