Browse Source

Fix bug quantity_max product

dev
Guillaume Bourgeois 5 years ago
parent
commit
134a9325f6
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      producer/controllers/OrderController.php

+ 1
- 0
producer/controllers/OrderController.php View File

$product['photo'] = '' ; $product['photo'] = '' ;
} }
$product['quantity_max'] = $product['productDistribution'][0]['quantity_max'] ;
$quantityOrder = Order::getProductQuantity($product['id'], $ordersArray) ; $quantityOrder = Order::getProductQuantity($product['id'], $ordersArray) ;
$product['quantity_ordered'] = $quantityOrder ; $product['quantity_ordered'] = $quantityOrder ;
$product['quantity_remaining'] = $product['quantity_max'] - $quantityOrder ; $product['quantity_remaining'] = $product['quantity_max'] - $quantityOrder ;

Loading…
Cancel
Save