ソースを参照

[Administration] Distributions > Édition commande : correctif changement de prix #1259

feature/souke
Guillaume Bourgeois 1年前
コミット
a0af23b8ec
2個のファイルの変更9行の追加4行の削除
  1. +5
    -2
      backend/controllers/DistributionController.php
  2. +4
    -2
      backend/controllers/OrderController.php

+ 5
- 2
backend/controllers/DistributionController.php ファイルの表示

@@ -209,8 +209,11 @@ class DistributionController extends BackendController

$jsonProduct['quantity_form'] = 0;

if (!$product->taxRate) {
$jsonProduct['taxRate'] = $this->getProducerCurrent()->taxRate;
if ($product->taxRate) {
$jsonProduct['taxRate'] = $product->taxRate->getAttributes();
}
else {
$jsonProduct['taxRate'] = $this->getProducerCurrent()->taxRate->getAttributes();
}

$jsonProductsArray[] = $jsonProduct;

+ 4
- 2
backend/controllers/OrderController.php ファイルの表示

@@ -957,8 +957,10 @@ class OrderController extends BackendController
$productOrder->quantity = $quantity;
$productOrder->price = $dataProductOrder->price;

if($dataProductOrder->invoice_price && $dataProductOrder->invoice_price != $dataProductOrder->price) {
//die('invoice price : '.$dataProductOrder->invoice_price);
if(isset($dataProductOrder->invoice_price)
&& $dataProductOrder->invoice_price
&& $dataProductOrder->invoice_price != $dataProductOrder->price) {
$productOrder->invoice_price = $dataProductOrder->invoice_price;
}
} else {

読み込み中…
キャンセル
保存