src-db/database/model/functions/GENERATE_AVERAGE_COSTS.xml
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 1679 66fc15a51a29
--- a/src-db/database/model/functions/GENERATE_AVERAGE_COSTS.xml	Wed Sep 03 17:10:52 2008 +0000
+++ b/src-db/database/model/functions/GENERATE_AVERAGE_COSTS.xml	Wed Sep 03 17:55:37 2008 +0000
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
   <database name="FUNCTION GENERATE_AVERAGE_COSTS">
     <function name="GENERATE_AVERAGE_COSTS" type="NULL">
-      <parameter name="p_pinstance_id" type="NUMERIC" mode="in">
+      <parameter name="p_pinstance_id" type="VARCHAR" mode="in">
         <default/>
       </parameter>
       <body><![CDATA[/*************************************************************************
@@ -24,11 +24,11 @@
   v_ResultStr VARCHAR2(2000):='';
   v_Result NUMBER;
   v_Message VARCHAR2(2000):='';
-  v_Record_ID NUMBER;
+  v_Record_ID VARCHAR2(32);
   v_Date DATE;
   v_Qty NUMBER;
   v_Cost NUMBER;
-  v_User NUMBER;
+  v_User VARCHAR2(32);
   v_Price NUMBER;
   v_DateOld DATE;
   v_CumQty NUMBER;