Changes in db scheme: gl_trans.type_no optimized to int, changed lock_stock.reorder_l...
[fa-stable.git] / includes / db / manufacturing_db.inc
index ddb93c58fd2cf33041a99497eef5fbf894ad6b2a..88083ef3deaf284ddaa71093a5b36f82b43931a4 100644 (file)
@@ -41,7 +41,7 @@ function load_stock_levels($location)
        $sql = "SELECT stock_id, SUM(qty) FROM ".TB_PREF."stock_moves WHERE tran_date <= '$date'";
        if ($location != '') $sql .= " AND loc_code = ".db_escape($location);
        $sql .= " GROUP BY stock_id";
-       $result = db_query($sql, "QOH calulcation failed");
+       $result = db_query($sql, "QOH calculation failed");
        while ($row = db_fetch($result)) {
                $qoh_stock[$row[0]] = $row[1];
        }
@@ -302,4 +302,3 @@ function check_for_recursive_bom($ultimate_parent, $component_to_check)
        return 0;
 } //end of function check_for_recursive_bom
 
-?>