Bladeren bron

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

feature/souke
Guillaume Bourgeois 1 jaar geleden
bovenliggende
commit
37ea1b7bb3
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. +2
    -1
      backend/controllers/OrderController.php

+ 2
- 1
backend/controllers/OrderController.php Bestand weergeven

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

Laden…
Annuleren
Opslaan