// Improved Supply Orders threshold when creating a template

This commit is contained in:
bMancone committed 2012-02-27 16:16:23 +00:00
1 parent e2e515b757
commit 18a475218a
1 file changed
+1
@@ -2024,6 +2024,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
$manager = StockManagerFactory::getManager(); $manager = StockManagerFactory::getManager();
foreach ($items as $item) foreach ($items as $item)
{ {
$diff = 0;
if ($supply_order->is_template != 0) if ($supply_order->is_template != 0)
{ {
$real_quantity = (int)$manager->getProductRealQuantities($item['id_product'], $item['id_product_attribute'], $supply_order->id_warehouse, true); $real_quantity = (int)$manager->getProductRealQuantities($item['id_product'], $item['id_product_attribute'], $supply_order->id_warehouse, true);