Max 10 recursion levels
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 21 May 2009 15:44:23 +0000 (15:44 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 21 May 2009 15:44:23 +0000 (15:44 +0000)
includes/db/manufacturing_db.inc

index db0115fb779f797aec884f3971777ad36a508d81..4e0a6a36f1de59e7d542e1e60b5d8b530f0f46c6 100644 (file)
@@ -25,11 +25,11 @@ function get_demand_qty($stock_id, $location)
        return $row['QtyDemand'];
 }
 
-// recursion fixed by Tom Moulton
+// recursion fixed by Tom Moulton. Max 10 recursion levels.
 function stock_demand_manufacture($stock_id, $qty, $demand_id, $level=0) 
 {
        $demand = 0.0;
-       if ($level > 4) {
+       if ($level > 10) {
                display_notification("BOM Too many Manufacturing levels deep $level");
                return $demand;
        }