Bad thousand/decimal formatting in XLS reports.(OpenOffice)
[fa-stable.git] / manufacturing / includes / db / work_order_requirements_db.inc
index 8bee3cfe32a6523ebd6100abdc60254d4cf811ef..71f9e50a1854664ede79edb45aadae50af7a3a46 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 function get_wo_requirements($woid)
 {
        $sql = "SELECT ".TB_PREF."wo_requirements.*, ".TB_PREF."stock_master.description,
@@ -10,7 +19,7 @@ function get_wo_requirements($woid)
                ".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=CAST(workcentre AS UNSIGNED)";    
+               AND ".TB_PREF."workcentres.id=workcentre";
 
        return db_query($sql, "The work order requirements could not be retrieved");    
 }