瀏覽代碼

Merge branch 'hotfix/hotfix_659'

prodstable
Guillaume Bourgeois 2 年之前
父節點
當前提交
ec8e71a218
共有 1 個文件被更改,包括 10 次插入8 次删除
  1. +10
    -8
      backend/controllers/DistributionController.php

+ 10
- 8
backend/controllers/DistributionController.php 查看文件

@@ -482,15 +482,17 @@ class DistributionController extends BackendController

$quantity = 0;
$invoicePrice = null;
foreach ($order->productOrder as $productOrder) {
if ($productOrder->id_product == $product['id']) {
if ($productOrder->invoice_price) {
$invoicePrice = number_format($productOrder->invoice_price, 2);
} else {
$invoicePrice = number_format($productOrder->price, 3);
}

$quantity = $productOrder->quantity;
if(isset($order->productOrder)) {
foreach ($order->productOrder as $productOrder) {
if ($productOrder->id_product == $product['id']) {
if ($productOrder->invoice_price) {
$invoicePrice = number_format($productOrder->invoice_price, 2);
} else {
$invoicePrice = number_format($productOrder->price, 3);
}
$quantity = $productOrder->quantity;
}
}
}


Loading…
取消
儲存