X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdb%2Fmanufacturing_db.inc;h=1153010d725e78cb92f1b7592c999c6c6f7ba435;hb=16f0dcc2d7cbfa736889306fa0faef1592cc64d6;hp=c2f34d9be21aac04c17bd4fcde878753313fe158;hpb=2383d33373d6ddec06906658a0ed6398077c1147;p=fa-stable.git diff --git a/includes/db/manufacturing_db.inc b/includes/db/manufacturing_db.inc index c2f34d9b..1153010d 100644 --- a/includes/db/manufacturing_db.inc +++ b/includes/db/manufacturing_db.inc @@ -60,7 +60,7 @@ function stock_demand_manufacture($stock_id, $qty, $demand_id, $location, $level } $stock_qty = $qoh_stock[$stock_id]; if ($stock_qty == NULL) $stock_qty = 0; - if ($qty < $stock_qty) return $demand; + if ($qty <= $stock_qty) return $demand; $bom = $bom_list[$stock_id]; if ($bom == NULL) { $sql = "SELECT parent, component, quantity FROM ".TB_PREF."bom WHERE parent = '$stock_id'";