MySQL 3.xx CAST bug fix
[fa-stable.git] / manufacturing / includes / db / work_order_requirements_db.inc
index 9c528db90a83df33ff81fba231d1557d21457081..78d8e7c4396860515d18e286e6f644c5cd140642 100644 (file)
@@ -6,11 +6,11 @@ function get_wo_requirements($woid)
                ".TB_PREF."stock_master.mb_flag, 
                ".TB_PREF."locations.location_name, 
                ".TB_PREF."workcentres.name AS WorkCentreDescription FROM 
-               ".TB_PREF."wo_requirements, ".TB_PREF."locations, ".TB_PREF."workcentres INNER JOIN ".TB_PREF."stock_master ON 
+               (".TB_PREF."wo_requirements, ".TB_PREF."locations, ".TB_PREF."workcentres) INNER JOIN ".TB_PREF."stock_master ON 
                ".TB_PREF."wo_requirements.stock_id = ".TB_PREF."stock_master.stock_id 
                WHERE workorder_id=$woid
                AND ".TB_PREF."locations.loc_code = ".TB_PREF."wo_requirements.loc_code
-               AND ".TB_PREF."workcentres.id=workcentre";      
+               AND ".TB_PREF."workcentres.id=workcentre";
 
        return db_query($sql, "The work order requirements could not be retrieved");    
 }