Final rewriting of sales module and some smaller changes.
[fa-stable.git] / manufacturing / includes / db / work_order_issues_db.inc
index 5bcfbad27ea0e4433fe798004f4458fdabf358e2..fcc6d6f5a6936aac110e13fea9c9991889be5d7d 100644 (file)
@@ -25,7 +25,7 @@ function add_work_order_issue($woid, $ref, $to_work_order, $items, $location, $w
     
        // insert the actual issue
        $sql = "INSERT INTO ".TB_PREF."wo_issues (workorder_id, reference, issue_date, loc_code, workcentre_id) 
-               VALUES ($WOID, '$ref', '" .
+               VALUES ($woid, '$ref', '" .
                date2sql($date_) . "', '$location', $workcentre)";
        db_query($sql,"The work order issue could not be added");