projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8015fb
)
Max 10 recursion levels
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 21 May 2009 15:44:23 +0000
(15:44 +0000)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 21 May 2009 15:44:23 +0000
(15:44 +0000)
includes/db/manufacturing_db.inc
patch
|
blob
|
history
diff --git
a/includes/db/manufacturing_db.inc
b/includes/db/manufacturing_db.inc
index db0115fb779f797aec884f3971777ad36a508d81..4e0a6a36f1de59e7d542e1e60b5d8b530f0f46c6 100644
(file)
--- a/
includes/db/manufacturing_db.inc
+++ b/
includes/db/manufacturing_db.inc
@@
-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;
}