diff -r 36cffc78188e src/org/openbravo/module/fixstock/RestoreStockValue_data.xsql
--- a/src/org/openbravo/module/fixstock/RestoreStockValue_data.xsql	Wed Aug 12 14:27:06 2015 +0200
+++ b/src/org/openbravo/module/fixstock/RestoreStockValue_data.xsql	Fri May 13 11:07:31 2016 +0200
@@ -33,8 +33,8 @@
         ?, ?,
         ?, ?, 
         ?, ?, 
-        to_number(?),to_number(?), to_date(?),
-        to_number(?),to_number(?))
+        cast(? as numeric),cast(? as numeric), to_date(?),
+        cast(? as numeric),cast(? as numeric))
       ]]></Sql>
       <Parameter name="client"/>
       <Parameter name="organization"/>
@@ -58,8 +58,8 @@
         ?, ?,
         ?, ?, 
         ?, ?, 
-        to_number(?), to_number(?),
-        to_number(?),to_number(?))
+        cast(? as numeric), cast(? as numeric),
+        cast(? as numeric),cast(? as numeric))
       ]]></Sql>
       <Parameter name="client"/>
       <Parameter name="organization"/>
@@ -79,7 +79,7 @@
       <SqlMethodComment></SqlMethodComment>
       <Sql><![CDATA[
         select C_Uom_Convert(  
-        to_number(?), ?,
+        cast(? as numeric), ?,
         ?, ?) from dual
         ]]></Sql>
       <Parameter name="qty"/>
