src-db/database/model/functions/C_YEARPERIODS.xml
changeset 1605 8a0fe0193bef
parent 785 8dba91261590
child 2259 eb65add9cd9a
--- a/src-db/database/model/functions/C_YEARPERIODS.xml	Wed Sep 03 17:10:52 2008 +0000
+++ b/src-db/database/model/functions/C_YEARPERIODS.xml	Wed Sep 03 17:55:37 2008 +0000
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
   <database name="FUNCTION C_YEARPERIODS">
     <function name="C_YEARPERIODS" type="NULL">
-      <parameter name="pinstance_id" type="NUMERIC" mode="in">
+      <parameter name="pinstance_id" type="VARCHAR" mode="in">
         <default/>
       </parameter>
       <body><![CDATA[/*************************************************************************
@@ -32,19 +32,19 @@
   -- Parameter
   TYPE RECORD IS REF CURSOR;
     Cur_Parameter RECORD;
-    v_Year_ID NUMBER;
+    v_Year_ID VARCHAR2(32);
     --
-    v_NextNo NUMBER;
+    v_NextNo VARCHAR2(32);
     v_MonthNo NUMBER;
     v_StartDate DATE;
     Test NUMBER;
     v_ResultStr VARCHAR(300) ;
     --  C_Year Variables
-    v_Client_ID NUMBER;
-    v_Org_ID NUMBER;
-    v_Calendar_ID NUMBER;
+    v_Client_ID VARCHAR2(32);
+    v_Org_ID VARCHAR2(32);
+    v_Calendar_ID VARCHAR2(32);
     v_Year_Str VARCHAR(20) ;
-    v_User_ID NUMBER;
+    v_User_ID VARCHAR2(32);
   BEGIN
     --  Update AD_PInstance
     --  DBMS_OUTPUT.PUT_LINE('Updating PInstance - Processing');