瀏覽代碼

Fix bug quantity_max product

dev
Guillaume Bourgeois 5 年之前
父節點
當前提交
134a9325f6
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      producer/controllers/OrderController.php

+ 1
- 0
producer/controllers/OrderController.php 查看文件

@@ -564,6 +564,7 @@ class OrderController extends ProducerBaseController
$product['photo'] = '' ;
}
$product['quantity_max'] = $product['productDistribution'][0]['quantity_max'] ;
$quantityOrder = Order::getProductQuantity($product['id'], $ordersArray) ;
$product['quantity_ordered'] = $quantityOrder ;
$product['quantity_remaining'] = $product['quantity_max'] - $quantityOrder ;

Loading…
取消
儲存