Pārlūkot izejas kodu

Fix bug quantity_max product

dev
Guillaume Bourgeois pirms 5 gadiem
vecāks
revīzija
134a9325f6
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      producer/controllers/OrderController.php

+ 1
- 0
producer/controllers/OrderController.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt